schlechtenburg/packages/layout/lib/util.ts

12 lines
241 B
TypeScript
Raw Normal View History

2021-03-08 15:29:35 +00:00
import { BlockData } from '@schlechtenburg/core';
2020-05-24 20:00:14 +00:00
export interface LayoutData {
orientation: string;
2021-03-08 15:29:35 +00:00
children: BlockData<any>[];
2020-05-24 20:00:14 +00:00
}
export const getDefaultData: () => LayoutData = () => ({
orientation: 'vertical',
children: [],
});