diff --git a/composables/useFiles.ts b/composables/useFiles.ts deleted file mode 100644 index 2a218685..00000000 --- a/composables/useFiles.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { File } from '~~/types'; - -export default function useFiles() { - const config = useRuntimeConfig(); - - function fileUrl(fileId: string | File | null | undefined) { - if (typeof fileId === 'object') { - fileId = fileId?.id; - } - - return `${config.public.directusUrl}/assets/${fileId}?token=${config.public.directusToken}`; - } - - return { - fileUrl, - }; -}