Files
hounam-submit-form-frontend/hooks/center.hook.ts
2026-05-31 18:00:43 +03:30

8 lines
223 B
TypeScript

import { getAllCenters } from "@/services/apis/center.api";
import { useQuery } from "@tanstack/react-query";
export const useGetAllCenters = () => useQuery({
queryKey:["get-all-centers"],
queryFn:getAllCenters
})