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

12 lines
261 B
TypeScript
Raw Normal View History

2020-05-24 20:00:14 +00:00
import { BlockProps } from '@components/TreeElement';
export interface ParagraphData {
value: string;
}
export interface ParagraphProps extends BlockProps {
data: ParagraphData;
}
export const getDefaultData: () => ParagraphData = () => ({ value: '' });