mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
20 lines
526 B
TypeScript
20 lines
526 B
TypeScript
import type { NoteBlockModel } from '@blocksuite/affine-model';
|
|
import {
|
|
type BlockStdScope,
|
|
ConfigExtensionFactory,
|
|
} from '@blocksuite/block-std';
|
|
import type { TemplateResult } from 'lit';
|
|
|
|
type NoteBlockContext = {
|
|
note: NoteBlockModel;
|
|
std: BlockStdScope;
|
|
};
|
|
|
|
export type NoteConfig = {
|
|
edgelessNoteHeader: (context: NoteBlockContext) => TemplateResult;
|
|
pageBlockTitle: (context: NoteBlockContext) => TemplateResult;
|
|
};
|
|
|
|
export const NoteConfigExtension =
|
|
ConfigExtensionFactory<NoteConfig>('affine:note');
|