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