11 lines
255 B
TypeScript

import { useQuery } from '@tanstack/react-query';
import { QueryKeys } from '@/shared/api/queryKeys';
import { getCash } from '../api/getCash';
export const useCash = () => useQuery({
queryFn: async () => getCash(),
queryKey: [QueryKeys.Cash],
});