mirror of
https://github.com/Shadowfita/docmost.git
synced 2025-11-14 00:31:12 +10:00
11 lines
369 B
TypeScript
11 lines
369 B
TypeScript
import { useQuery } from "@tanstack/react-query";
|
|
import { getWorkspaceMembers } from "@/features/workspace/services/workspace-service";
|
|
import { QueryParams } from "@/lib/types.ts";
|
|
|
|
export function useWorkspaceMembersQuery(params?: QueryParams) {
|
|
return useQuery({
|
|
queryKey: ["workspaceMembers", params],
|
|
queryFn: () => getWorkspaceMembers(params),
|
|
});
|
|
}
|