schlechtenburg/packages/layout/lib/util.ts

12 lines
245 B
TypeScript
Raw Normal View History

import { IBlockData } from '@schlechtenburg/core';
2020-05-24 20:00:14 +00:00
2022-03-11 17:23:14 +00:00
export interface ILayoutData {
2020-05-24 20:00:14 +00:00
orientation: string;
children: IBlockData<any>[];
2020-05-24 20:00:14 +00:00
}
2022-03-11 17:23:14 +00:00
export const getDefaultData: () => ILayoutData = () => ({
2020-05-24 20:00:14 +00:00
orientation: 'vertical',
children: [],
});