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

30 lines
563 B
TypeScript
Raw Normal View History

2021-02-22 18:13:37 +00:00
import {
defineComponent,
PropType,
} from 'vue';
import { IBlockData } from '../types';
2022-12-29 02:47:45 +00:00
import { SbBlockToolbar } from './BlockToolbar';
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 />
2022-12-29 02:47:45 +00:00
<SbBlockToolbar />
2021-02-22 18:13:37 +00:00
</div>
);
},
});