import { fetchRecordById } from "@/record-management/services/api/userRecordService";
import { useQuery } from "@tanstack/react-query";

export const useRecordById = (id: string) => {
  return useQuery({
    queryKey: ["record", id],
    queryFn: () => fetchRecordById(id),
    enabled: !!id,
    staleTime: 0,
    gcTime: 0,
  });
};
