1 import { ContextSeparator } from '@proton/components';
2 import type { SHARE_MEMBER_PERMISSIONS } from '@proton/shared/lib/drive/permissions';
4 import type { DecryptedLink } from '../../../store';
5 import type { ContextMenuProps } from '../../FileBrowser/interface';
6 import { DriveItemContextMenu } from '../Drive/DriveContextMenu';
7 import { GoToParent } from './ContextMenuButtons';
9 export function SearchItemContextMenu(
10 props: ContextMenuProps & {
12 selectedLinks: DecryptedLink[];
13 permissions: SHARE_MEMBER_PERMISSIONS;
16 const { shareId, selectedLinks, close } = props;
18 const isOnlyOneItem = selectedLinks.length === 1;
21 <DriveItemContextMenu {...props}>
25 <GoToParent shareId={shareId} parentLinkId={selectedLinks[0].parentLinkId} close={close} />
28 </DriveItemContextMenu>