schlechtenburg/src/components/user/Layout/util.ts

19 lines
341 B
TypeScript
Raw Normal View History

2020-05-24 20:00:14 +00:00
import {
BlockProps,
BlockDefinition,
} from '@components/TreeElement';
export interface LayoutData {
orientation: string;
children: BlockDefinition[];
}
export interface LayoutProps extends BlockProps {
data: LayoutData;
}
export const getDefaultData: () => LayoutData = () => ({
orientation: 'vertical',
children: [],
});