"use client"; import { use } from "react"; import Link from "next/link"; import { ArrowLeft, ExternalLink, User } from "lucide-react"; import { useBill, useBillTrend } from "@/lib/hooks/useBills"; import { BriefPanel } from "@/components/bills/BriefPanel"; import { ActionTimeline } from "@/components/bills/ActionTimeline"; import { TrendChart } from "@/components/bills/TrendChart"; import { NewsPanel } from "@/components/bills/NewsPanel"; import { FollowButton } from "@/components/shared/FollowButton"; import { billLabel, congressLabel, formatDate, partyBadgeColor, cn } from "@/lib/utils"; export default function BillDetailPage({ params }: { params: Promise<{ id: string }> }) { const { id } = use(params); const billId = decodeURIComponent(id); const { data: bill, isLoading } = useBill(billId); const { data: trendData } = useBillTrend(billId, 30); if (isLoading) { return
Bill not found.
← Back to bills
Introduced: {formatDate(bill.introduced_date)}
{bill.congress_url && (
congress.gov