mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-10 05:29:08 +08:00
16 lines
430 B
TypeScript
16 lines
430 B
TypeScript
import { SeniorToolExtension } from '@blocksuite/affine-widget-edgeless-toolbar';
|
|
import { html } from 'lit';
|
|
|
|
export const mindMapSeniorTool = SeniorToolExtension(
|
|
'mindMap',
|
|
({ block, toolbarContainer }) => {
|
|
return {
|
|
name: 'Mind Map',
|
|
content: html`<edgeless-mindmap-tool-button
|
|
.edgeless=${block}
|
|
.toolbarContainer=${toolbarContainer}
|
|
></edgeless-mindmap-tool-button>`,
|
|
};
|
|
}
|
|
);
|