2025-02-08 22:02:12 +03:00

11 lines
369 B
TypeScript

import { getClients, getMasters } from '@/actions/contacts';
import { useQuery } from '@tanstack/react-query';
export const useClientsQuery = () => {
return useQuery({ queryFn: getClients, queryKey: ['contacts', 'clients', 'get'] });
};
export const useMastersQuery = () => {
return useQuery({ queryFn: getMasters, queryKey: ['contacts', 'masters', 'get'] });
};