export const useDirectusFiles = () => { const getFileUrl = ( id?: string | null, options?: Record ): string => { if (!id) return ''; const params = new URLSearchParams( options as Record ).toString(); return `/api/assets/${id}${params ? `?${params}` : ''}`; }; return { getFileUrl, }; };