'use client'; import * as React from 'react'; import { BoldIcon, Code2Icon, HighlighterIcon, ItalicIcon, RedoIcon, StrikethroughIcon, UnderlineIcon, UndoIcon, } from 'lucide-react'; import { KEYS } from 'platejs'; import { useEditorReadOnly, useEditorRef } from 'platejs/react'; import { InsertToolbarButton } from './insert-toolbar-button'; import { LinkToolbarButton } from './link-toolbar-button'; import { MarkToolbarButton } from './mark-toolbar-button'; import { MoreToolbarButton } from './more-toolbar-button'; import { ToolbarButton, ToolbarGroup } from './toolbar'; import { TurnIntoToolbarButton } from './turn-into-toolbar-button'; export function FixedToolbarButtons() { const readOnly = useEditorReadOnly(); const editor = useEditorRef(); if (readOnly) return null; return (