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

35 lines
586 B
TypeScript
Raw Normal View History

2021-02-22 18:13:37 +00:00
import {
defineComponent,
PropType,
} from 'vue';
import { Block } from '../blocks';
2021-02-22 23:12:06 +00:00
import { SbTreeBlockSelect } from './TreeBlockSelect';
2021-02-22 18:13:37 +00:00
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">
2021-02-22 23:12:06 +00:00
<SbTreeBlockSelect
block={props.block}
2021-02-22 18:13:37 +00:00
/>
</div>
);
},
});