import { Clock } from "lucide-react"; import { BillAction } from "@/lib/types"; import { formatDate } from "@/lib/utils"; interface ActionTimelineProps { actions: BillAction[]; } export function ActionTimeline({ actions }: ActionTimelineProps) { if (!actions || actions.length === 0) { return (

Action History

No actions recorded yet.

); } return (

Action History ({actions.length})

    {actions.map((action, i) => (
  • {formatDate(action.action_date)} {action.chamber && ` ยท ${action.chamber}`}

    {action.action_text}

  • ))}
); }