import { IPopupItem, PopupSelect } from '../../_shared/PopupSelect';
import { EditSvg } from '../../_shared/svg/EditSvg';
import { TrashSvg } from '../../_shared/svg/TrashSvg';
import { CopySvg } from '../../_shared/svg/CopySvg';
export const NavItemOptionsPopup = ({
onRenameClick,
onDeleteClick,
onDuplicateClick,
onClose,
top,
}: {
onRenameClick: () => void;
onDeleteClick: () => void;
onDuplicateClick: () => void;
onClose?: () => void;
top: number;
}) => {
const items: IPopupItem[] = [
{
icon: (
),
onClick: onRenameClick,
title: 'Rename',
},
{
icon: (
),
onClick: onDeleteClick,
title: 'Delete',
},
{
icon: (
),
onClick: onDuplicateClick,
title: 'Duplicate',
},
];
return (
onClose && onClose()}
items={items}
className={`absolute right-0`}
style={{ top: `${top}px` }}
>
);
};