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

export const useGetProfile = () => {
  return useQuery({
    queryKey: ["profile"],
    queryFn: api.getProfile,
  });
};
