mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-03 02:20:19 +08:00
18 lines
367 B
TypeScript
18 lines
367 B
TypeScript
import { BlockModel, defineBlockSchema } from '@blocksuite/store';
|
|
|
|
export const DividerBlockSchema = defineBlockSchema({
|
|
flavour: 'affine:divider',
|
|
metadata: {
|
|
version: 1,
|
|
role: 'content',
|
|
children: [],
|
|
},
|
|
toModel: () => new DividerBlockModel(),
|
|
});
|
|
|
|
type Props = {
|
|
text: string;
|
|
};
|
|
|
|
export class DividerBlockModel extends BlockModel<Props> {}
|