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.

523 B
Raw Blame
import { createFileDownload } from '@core/util/createFileDownload';
import { storedDocumentDownloadSource } from '@queries/storage/document-download';
import { FileDownloadButton } from './FileDownload';

/** Downloads a linked file without opening its viewer or loading it on hover. */
export function DocumentDownloadButton(props: { documentId: string }) {
  const download = createFileDownload(() =>
    storedDocumentDownloadSource(props.documentId)
  );
  return <FileDownloadButton download={download} iconOnly />;
}