19 lines
329 B
TypeScript
19 lines
329 B
TypeScript
import {
|
|
BlockProps,
|
|
BlockData,
|
|
} from '@components/TreeElement';
|
|
|
|
export interface LayoutData {
|
|
orientation: string;
|
|
children: BlockData[];
|
|
}
|
|
|
|
export interface LayoutProps extends BlockProps {
|
|
data: LayoutData;
|
|
}
|
|
|
|
export const getDefaultData: () => LayoutData = () => ({
|
|
orientation: 'vertical',
|
|
children: [],
|
|
});
|