1 import { c } from 'ttag';
3 import type { DriveFileRevision } from '../../../store';
4 import { ContextMenuButton } from '../../sections/ContextMenu';
5 import type { RevisionsProviderState } from '../RevisionsProvider';
8 revision: DriveFileRevision;
9 downloadRevision: RevisionsProviderState['downloadRevision'];
13 const RevisionDownloadButton = ({ revision, downloadRevision, close }: Props) => {
16 name={c('Action').t`Download`}
17 icon="arrow-down-line"
18 testId="context-menu-download"
19 action={() => downloadRevision(revision.id)}
25 export default RevisionDownloadButton;