import { ArrowDownIcon, ArrowUpIcon, TrashIcon } from '@heroicons/react/solid'; import React, { useContext } from 'react'; import Conditional from '../Conditional'; import Context from './Context'; import Blocks from './Blocks'; import { TypeBlock } from './Types'; interface Props { block: TypeBlock; select: VoidFunction; moveUp: VoidFunction; moveDown: VoidFunction; remove: VoidFunction; } const EditorBlock = (props: Props): JSX.Element => { const { block, select, remove, moveDown, moveUp } = props; const { selected } = useContext(Context); const EditorBlock = Blocks.find(({ name }) => name === block?.type); return ( ); }; export default EditorBlock;