1 import { c } from 'ttag';
3 import { Button } from '@proton/atoms';
4 import { Icon, Tooltip } from '@proton/components';
6 import type { BrowserItemId } from '../../FileBrowser/interface';
7 import type { useLinkSharingModal } from '../../modals/ShareLinkModal/ShareLinkModal';
11 linkId: BrowserItemId;
12 trashed: number | null;
14 showLinkSharingModal: ReturnType<typeof useLinkSharingModal>[1];
18 const ShareIcon = ({ shareId, linkId, trashed, className, showLinkSharingModal, isAdmin }: Props) => {
19 if (trashed || !isAdmin) {
25 <Tooltip title={c('Action').t`Manage share`}>
32 void showLinkSharingModal({
38 <Icon name="users" alt={c('Action').t`Manage share`} />
45 export default ShareIcon;