import React, { useState } from 'react'; import { AlertTriangle, ChevronDown, ChevronRight, CheckCircle } from 'lucide-react'; import { cn } from "@/lib/utils"; interface FactCheckAlertProps { issues: string[]; } export const FactCheckAlert: React.FC = ({ issues }) => { const [isExpanded, setIsExpanded] = useState(false); if (!issues || issues.length === 0) return null; return (
setIsExpanded(!isExpanded)} >

Potential Inaccuracies Detected

{isExpanded ? ( ) : ( )}

Our fact-checking system flagged {issues.length} potential issue{issues.length > 1 ? 's' : ''} in this response.

{isExpanded && (
{issues.map((issue, idx) => (
{idx + 1}. {issue}
))}
Please verify with official sources.
)}
); };