import { MenuList, MenuItem } from '@chakra-ui/react' import { CopyIcon, TrashIcon } from 'assets/icons' import { useTypebot } from 'contexts/TypebotContext/TypebotContext' export const GroupNodeContextMenu = ({ groupIndex, }: { groupIndex: number }) => { const { deleteGroup, duplicateGroup } = useTypebot() const handleDeleteClick = () => deleteGroup(groupIndex) const handleDuplicateClick = () => duplicateGroup(groupIndex) return ( } onClick={handleDuplicateClick}> Duplicate } onClick={handleDeleteClick}> Delete ) }