import {
  queryKeysFactory
} from "./chunk-ZA2KFUFR.js";
import {
  sdk
} from "./chunk-ZBWL72TB.js";

// src/hooks/api/members.tsx
import { useQuery } from "@tanstack/react-query";
var MEMBERS_QUERY_KEY = "members";
var membersQueryKeys = queryKeysFactory(MEMBERS_QUERY_KEY);
var useMembers = (query, options) => {
  const { data, ...rest } = useQuery({
    queryFn: () => sdk.admin.members.query(query),
    queryKey: membersQueryKeys.list(query ?? {}),
    ...options
  });
  return { ...data, ...rest };
};

export {
  useMembers
};
