import { useState, useRef } from "react"; import { motion } from "framer-motion"; import { Sparkles, X, Plus, RefreshCw } from 'lucide-react'; import MainEditor from "./main-editor/MainEditor"; import { cn } from "@/public/lib/utils"; interface CharacterEditorProps { className?: string; } const mockContent = [ { type: 'paragraph', content: [ { type: 'highlightText', attrs: { text: 'Hello, world!', color: 'blue' } }, { type: 'text', text: 'Hello, world!' }, { type: 'highlightText', attrs: { text: 'Hello, world!', color: 'red' } }, { type: 'text', text: 'Hello, world!' }, { type: 'highlightText', attrs: { text: 'Hello, world!', color: 'green' } }, { type: 'text', text: 'Hello, world!' }, { type: 'highlightText', attrs: { text: 'Hello, world!', color: 'yellow' } }, { type: 'text', text: 'Hello, world!' }, { type: 'highlightText', attrs: { text: 'Hello, world!', color: 'purple' } }, { type: 'text', text: 'Hello, world!' }, { type: 'highlightText', attrs: { text: 'Hello, world!', color: 'orange' } }, { type: 'text', text: 'Hello, world!' }, { type: 'highlightText', attrs: { text: 'Hello, world!', color: 'pink' } }, { type: 'text', text: 'Hello, world!' }, ], }, ]; export default function CharacterEditor({ className, }: CharacterEditorProps) { const [isOptimizing, setIsOptimizing] = useState(false); const handleSmartPolish = async () => { }; return (