Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

353 B
Raw Blame
import { formatDocumentName } from '@service-storage/util/filename';

export function documentDownloadName(
  metadata: {
    documentName?: string | null;
    fileType?: string | null;
  },
  fallback = 'download'
) {
  return formatDocumentName(
    metadata.documentName || fallback,
    metadata.fileType,
    { caseInsensitiveSuffix: true }
  );
}