diff --git a/src/components/editor/RichContentEditor.tsx b/src/components/editor/RichContentEditor.tsx index 491297fd..b2cd9e19 100644 --- a/src/components/editor/RichContentEditor.tsx +++ b/src/components/editor/RichContentEditor.tsx @@ -23,6 +23,36 @@ interface RichContentEditorProps { onUpdate?: (content: string) => void; } +interface ToolbarButtonProps { + onClick: () => void; + isActive?: boolean; + disabled?: boolean; + children: React.ReactNode; + title?: string; +} + +const ToolbarButton = ({ + onClick, + isActive = false, + disabled = false, + children, + title, +}: ToolbarButtonProps) => ( + +); + export const RichContentEditor: React.FC = ({ initialContent, onUpdate, @@ -43,34 +73,6 @@ export const RichContentEditor: React.FC = ({ return null; } - const ToolbarButton = ({ - onClick, - isActive = false, - disabled = false, - children, - title, - }: { - onClick: () => void; - isActive?: boolean; - disabled?: boolean; - children: React.ReactNode; - title?: string; - }) => ( - - ); - return (