'use client'; import { AlertCircle, ChevronDown } from 'lucide-react'; import { useState } from 'react'; import { cn } from '../../lib/cn'; interface ErrorCardProps { /** Title shown in the header */ title: string; /** Error message or details to show when expanded */ details?: string; /** Additional class names */ className?: string; } /** * A collapsible error card that shows a title with an error icon, * and expands to reveal details when clicked. */ export function ErrorCard({ title, className, details = 'Unknown error', }: ErrorCardProps) { const [isExpanded, setIsExpanded] = useState(false); return (
{isExpanded && details && (
              {details}
            
)}
); }