@liveblocks/react-blocknote
Version:
An integration of BlockNote + React to enable collaboration, comments, live cursors, and more with Liveblocks.
19 lines (16 loc) • 685 B
JavaScript
import { useCreateBlockNote } from '@blocknote/react';
import { useLiveblocksExtension } from '../BlockNoteLiveblocksExtension.js';
import { withLiveblocksEditorOptions } from './liveblocksEditorOptions.js';
const useCreateBlockNoteWithLiveblocks = (blocknoteOptions = {}, liveblocksOptions = void 0, deps = []) => {
const liveblocksExtension = useLiveblocksExtension(liveblocksOptions);
return useCreateBlockNote(
withLiveblocksEditorOptions(
liveblocksExtension,
blocknoteOptions,
liveblocksOptions
),
[liveblocksExtension, ...deps]
);
};
export { useCreateBlockNoteWithLiveblocks };
//# sourceMappingURL=useCreateBlockNoteWithLiveblocks.js.map