init project portal web

This commit is contained in:
Sweli Giri
2025-04-15 13:56:54 +07:00
parent 9a25243035
commit 8b15dcebf8
122 changed files with 13965 additions and 1 deletions

View File

@ -0,0 +1,20 @@
import { useQuery } from "@tanstack/react-query"
import { pricePlanRepository } from "../data/repository"
export const usePricePlanQuery = (page: number, size: number, type: string) =>
useQuery({
queryKey: ["priceplan", page, size, type],
queryFn: () => pricePlanRepository.getPricePlan({ page, size, type }),
})
export const usePricePlanTypesQuery = () =>
useQuery({
queryKey: ["priceplanTypes"],
queryFn: () => pricePlanRepository.getPricePlanTypes(),
})
export const useServiceTypesQuery = () =>
useQuery({
queryKey: ["serviceTypes"],
queryFn: () => pricePlanRepository.getServiceTypes(),
})