1 import { c } from 'ttag';
3 import { useActions } from '../../../../store';
4 import ContextMenuButton from '../ContextMenuButton';
12 const CopyLinkButton = ({ shareId, linkId, close }: Props) => {
13 const { copyShareLinkToClipboard } = useActions(); // We can use it here since we don't need confirmModal
15 if (!copyShareLinkToClipboard) {
21 name={c('Action').t`Copy link`}
23 testId="context-menu-copy-link"
24 action={() => copyShareLinkToClipboard(new AbortController().signal, shareId, linkId)}
30 export default CopyLinkButton;