// [REQ T2]  Custom hooks – useServices enkapsuluje useQuery dla listy usług
// [REQ D7]  React Query – useQuery z kluczem ['services'], staleTime 5 min
import { useQuery } from '@tanstack/react-query';
import { getServices } from '../api/services';

export const useServices = () =>
  useQuery({
    queryKey: ['services'],
    queryFn: getServices,
  });
