import { type UserFileQuery, useUserFileQuery as useCodegenUserFile, } from "@/generated/graphql"; export type { UserFileQuery }; /** * Wraps the codegen'd UserFile query with nullable ID + polling convenience. */ export const useUserFileQuery = ( id: string | null, options?: { enabled?: boolean; refetchInterval?: number | false }, ) => useCodegenUserFile( { id: id ?? "" }, { enabled: options?.enabled ?? Boolean(id), refetchInterval: options?.refetchInterval, }, );