import { useQuery } from "@tanstack/react-query";
import * as api from "../service/HomeService";

export const useGetDashboard = () => {
  return useQuery({
    queryKey: ["dashboard"],
    queryFn: api.getDashboard,
  });
};
