"use client"; import { TrendingUp, BookOpen, Flame, RefreshCw } from "lucide-react"; import Link from "next/link"; import { useDashboard } from "@/lib/hooks/useDashboard"; import { BillCard } from "@/components/shared/BillCard"; import { WelcomeBanner } from "@/components/shared/WelcomeBanner"; import { adminAPI } from "@/lib/api"; import { useState } from "react"; import { useAuthStore } from "@/stores/authStore"; export default function DashboardPage() { const { data, isLoading, refetch } = useDashboard(); const [polling, setPolling] = useState(false); const token = useAuthStore((s) => s.token); const triggerPoll = async () => { setPolling(true); try { await adminAPI.triggerPoll(); setTimeout(() => { refetch(); setPolling(false); }, 3000); } catch { setPolling(false); } }; return (
Your personalized Congressional activity feed
Sign in to personalise this feed with bills and members you follow.
Your feed is empty.
Follow bills, members, or topics to see activity here.