1 import { c } from 'ttag';
3 import { useInvitationsActions } from '../../../../store';
4 import { ContextMenuButton } from '../../ContextMenu';
10 export const AcceptButton = ({ invitationId, close }: Props) => {
11 const { acceptInvitation } = useInvitationsActions();
15 name={c('Action').t`Accept`}
16 action={() => acceptInvitation(new AbortController().signal, invitationId)}
18 testId="shared-with-me-accept-invitation"