'use client' import { useState } from 'react' import { Button } from '@/components/ui/button' import { Sparkles, Lightbulb, Scissors, Wand2, FileText, ChevronDown, ChevronUp } from 'lucide-react' import { cn } from '@/lib/utils' import { useLanguage } from '@/lib/i18n/LanguageProvider' interface AIAssistantActionBarProps { onClarify?: () => void onShorten?: () => void onImprove?: () => void onTransformMarkdown?: () => void isMarkdownMode?: boolean disabled?: boolean className?: string } export function AIAssistantActionBar({ onClarify, onShorten, onImprove, onTransformMarkdown, isMarkdownMode = false, disabled = false, className }: AIAssistantActionBarProps) { const { t } = useLanguage() const [isExpanded, setIsExpanded] = useState(false) const handleAction = async (action: () => void) => { if (!disabled) { action() } } return (