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

28 lines
485 B
TypeScript
Raw Normal View History

2021-02-22 18:13:37 +00:00
import {
defineComponent,
PropType,
} from 'vue';
2021-03-08 15:29:35 +00:00
import { BlockData } from '../types';
2021-02-22 23:12:06 +00:00
import { SbTreeBlockSelect } from './TreeBlockSelect';
2021-02-22 18:13:37 +00:00
import './MainMenu.scss';
export const SbMainMenu = defineComponent({
name: 'sb-main-menu',
props: {
block: {
2021-03-08 15:29:35 +00:00
type: (null as unknown) as PropType<BlockData<any>>,
2021-02-22 18:13:37 +00:00
required: true,
},
},
2021-03-08 15:29:35 +00:00
setup() {
2021-02-22 18:13:37 +00:00
return () => (
<div class="sb-main-menu">
2021-03-08 15:29:35 +00:00
<SbTreeBlockSelect />
2021-02-22 18:13:37 +00:00
</div>
);
},
});