schlechtenburg/packages/core/lib/components/MainMenu.tsx

35 lines
586 B
TypeScript

import {
defineComponent,
PropType,
} from 'vue';
import { Block } from '../blocks';
import { SbTreeBlockSelect } from './TreeBlockSelect';
import './MainMenu.scss';
interface MainMenuProps {
block: Block;
}
export const SbMainMenu = defineComponent({
name: 'sb-main-menu',
props: {
block: {
type: (null as unknown) as PropType<Block>,
required: true,
},
},
setup(props: MainMenuProps, context) {
return () => (
<div class="sb-main-menu">
<SbTreeBlockSelect
block={props.block}
/>
</div>
);
},
});