'use client'; import { motion } from 'framer-motion'; import { useState } from 'react'; import { UISuggestion } from '@/lib/editor/suggestions'; import { CrossIcon, MessageIcon } from './icons'; import { Button } from '../ui/button'; export const Suggestion = ({ suggestion, onApply, }: { suggestion: UISuggestion; onApply: () => void; }) => { const [isExpanded, setIsExpanded] = useState(false); return !isExpanded ? (