import { useNavigate } from 'react-router-dom'; import { useAppStore } from '../store/appStore'; import { SearchForm } from '../components/forms/SearchForm'; export function Home() { const navigate = useNavigate(); const { searchQuery, selectLegislator } = useAppStore(); const handleSearch = async () => { if (!searchQuery.trim()) return; await useAppStore.getState().searchLegislators(searchQuery); const results = useAppStore.getState().searchResults; if (results.length > 0) { await selectLegislator(results[0].id); navigate(`/legislator/${results[0].id}`); } }; return (

Track Legislative Voting Records

Search for any U.S. Congress legislator to view their complete voting history with AI-generated bill summaries.

Search

Find any legislator

Explore

View voting history

Understand

AI bill summaries

); }