import { defineComponent, PropType, } from 'vue'; import { Block, BlockTree, } from '../blocks'; import { useBlockTree } from '../use-block-tree'; import { useActivation } from '../use-activation'; import { SbContextMenu } from './ContextMenu'; import { SbButton } from './Button'; import './TreeBlockSelect.scss'; interface TreeBlockSelectProps { block: Block; } export const SbTreeBlockSelect = defineComponent({ name: 'sb-main-menu', setup() { const { blockTree } = useBlockTree(); const { activate, activeBlockId, } = useActivation(); const treeToHtml = (tree: BlockTree, close: Function) =>