import ObjectList from "../../../hooks/objectList.tsx";
import {UserService} from "../../../client";


const useUsersList = () => ObjectList({
    queryFn: UserService.getAllUsers,
    getObjectsFn: (response) => response.users,
    queryKey: "getAllUsers"
});

export default useUsersList;