mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-05-19 07:42:43 +00:00
17 lines
442 B
TypeScript
17 lines
442 B
TypeScript
'use client';
|
|
|
|
import { createPlatePlugin } from '@udecode/plate-common/react';
|
|
|
|
import { FixedToolbar } from '~/components/plate-ui/fixed-toolbar';
|
|
import { FixedToolbarButtons } from '~/components/plate-ui/fixed-toolbar-buttons';
|
|
|
|
export const FixedToolbarPlugin = createPlatePlugin({
|
|
key: 'fixed-toolbar',
|
|
render: {
|
|
beforeEditable: () => (
|
|
<FixedToolbar>
|
|
<FixedToolbarButtons />
|
|
</FixedToolbar>
|
|
),
|
|
},
|
|
});
|