structure category product

This commit is contained in:
hamid zarghami
2026-01-24 09:24:18 +03:30
parent 2eba93984c
commit 2995bb86b4
12 changed files with 109 additions and 2 deletions
@@ -0,0 +1,9 @@
import { useQuery } from "@tanstack/react-query";
import * as api from "../service/ProductService";
export const useGetCategory = () => {
return useQuery({
queryKey: ["category"],
queryFn: api.getCategory,
});
};