import { MenuList, MenuItem } from '@chakra-ui/react' import { CopyIcon, TrashIcon } from 'assets/icons' import { useTypebot } from 'contexts/TypebotContext/TypebotContext' import { BlockIndices } from 'models' type Props = { indices: BlockIndices } export const BlockNodeContextMenu = ({ indices }: Props) => { const { deleteBlock, duplicateBlock } = useTypebot() const handleDuplicateClick = () => duplicateBlock(indices) const handleDeleteClick = () => deleteBlock(indices) return ( } onClick={handleDuplicateClick}> Duplicate } onClick={handleDeleteClick}> Delete ) }