Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 142x 142x 16x 5x | import { useQuery } from '@tanstack/react-query';
import { QuotasWithAssignedPlansApiClient } from './api-client/quotas-with-assigned-plans.api-client';
import { quotasQueryKeys } from './queries.keys';
export const useQuotaWithAssignedPlans = (...args: Parameters<(typeof QuotasWithAssignedPlansApiClient)['get']>) =>
useQuery({
queryKey: quotasQueryKeys.withAssignedPlans.details(...args),
queryFn: () => QuotasWithAssignedPlansApiClient.get(...args),
});
export const useQuotasWithAssignedPlans = (...args: Parameters<(typeof QuotasWithAssignedPlansApiClient)['search']>) =>
useQuery({
queryKey: quotasQueryKeys.withAssignedPlans.list(...args),
queryFn: () => QuotasWithAssignedPlansApiClient.search(...args),
});
|