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

28 lines
487 B
TypeScript
Raw Normal View History

2021-02-22 18:13:37 +00:00
import {
defineComponent,
PropType,
} from 'vue';
import { IBlockData } 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: {
type: (null as unknown) as PropType<IBlockData<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>
);
},
});