import { useQuery } from "@tanstack/react-query";
import { getCategories } from "../service/ShareService";

export const useGetCategories = () => {
  return useQuery({
    queryKey: ["categories"],
    queryFn: getCategories,
  });
};
