'use client'; import * as React from 'react'; import { BoldIcon, Code2Icon, ItalicIcon, StrikethroughIcon, UnderlineIcon, } from 'lucide-react'; import { KEYS } from 'platejs'; import { useEditorReadOnly } from 'platejs/react'; import { LinkToolbarButton } from './link-toolbar-button'; import { MarkToolbarButton } from './mark-toolbar-button'; import { MoreToolbarButton } from './more-toolbar-button'; import { ToolbarGroup } from './toolbar'; import { TurnIntoToolbarButton } from './turn-into-toolbar-button'; export function FloatingToolbarButtons() { const readOnly = useEditorReadOnly(); if (readOnly) return null; return ( <> ); }