"use client"; import { useState } from "react"; import { ChevronDown, ChevronUp } from "lucide-react"; import { PHASES as PHASE_GROUPS } from "@/lib/api/case-status"; import { STATUS_LABELS, STATUS_ICONS, STATUS_DESCRIPTIONS, STATUS_TONE } from "@/components/cases/status-badge"; /* * Collapsible guide showing the core statuses grouped by phase, * each with its icon, Hebrew label, color badge, and description. * Phases come from the SSoT (@/lib/api/case-status). * Intended to sit below the WorkflowTimeline in the case sidebar. */ export function StatusGuide() { const [open, setOpen] = useState(false); return (
{open && (
{PHASE_GROUPS.map((group) => (

{group.label}

    {group.statuses.map((s) => { const Icon = STATUS_ICONS[s]; return (
  • {STATUS_LABELS[s]} {STATUS_DESCRIPTIONS[s]}
  • ); })}
))}
)}
); }