import type { LibraryFile } from "../../lib/api"; /** A file's line under its name, in the table and on its card: who made it and its format. */ export function fileMeta(file: LibraryFile): string { const who = file.display_uploader || file.asset?.uploader; const format = file.asset?.container?.toUpperCase(); return [who, format].filter(Boolean).join(" ยท "); }