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

{value.summary}

{value.path && (

路径:{value.path}

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