import { CheckCircle2, XCircle, ChevronDown, ChevronUp } from "lucide-react"; import { useState } from "react"; import type { AngleSummary } from "@/types"; import { ANGLE_DESCRIPTIONS } from "@/utils/constants"; interface AngleCardProps { summary: AngleSummary; } export function AngleCard({ summary }: AngleCardProps) { const [expanded, setExpanded] = useState(false); const statusColor = summary.detected ? "text-emerald-400 border-emerald-500/30 bg-emerald-500/5" : "text-red-400 border-red-500/30 bg-red-500/5"; const scorePercent = Math.round(summary.bestScore * 100); return (
{ANGLE_DESCRIPTIONS[summary.angle]}
Found in
{summary.previewUrls.length > 0 ? ({summary.detectedIn[i]}