import { useState } from 'react'; import { ChevronDown, FolderTree, RefreshCw, TriangleAlert, X } from 'lucide-react'; import type { AppDiagnostic } from '../../stores/useAppStore'; import { Button, CopyButton, IconButton } from '../../components/ui'; export function ErrorRecoveryPanel({ value, onClose, onRetry, onOpenProject, }: { value: AppDiagnostic; onClose: () => void; onRetry?: () => void; onOpenProject: () => void; }) { const [expanded, setExpanded] = useState(false); return (

{value.summary}

{value.path &&

路径:{value.path}

}
{onRetry && ( )}
{expanded && (
          {value.detail}
        
)}
); }