because I got bored of customising my CV for every job
at main 21 lines 510 B view raw
1import { 2 type UserFileQuery, 3 useUserFileQuery as useCodegenUserFile, 4} from "@/generated/graphql"; 5 6export type { UserFileQuery }; 7 8/** 9 * Wraps the codegen'd UserFile query with nullable ID + polling convenience. 10 */ 11export const useUserFileQuery = ( 12 id: string | null, 13 options?: { enabled?: boolean; refetchInterval?: number | false }, 14) => 15 useCodegenUserFile( 16 { id: id ?? "" }, 17 { 18 enabled: options?.enabled ?? Boolean(id), 19 refetchInterval: options?.refetchInterval, 20 }, 21 );