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 deleteRevision: RevisionsProviderState['deleteRevision'];
13 const RevisionDeleteButton = ({ revision, deleteRevision, close }: Props) => {
16 name={c('Action').t`Delete version`}
18 testId="context-menu-revision-delete"
19 action={() => deleteRevision(new AbortController().signal, revision)}
25 export default RevisionDeleteButton;