import { useState } from 'react' import { ChartBarIcon, CurrencyDollarIcon, ArrowTrendingUpIcon, DocumentChartBarIcon, } from '@heroicons/react/24/outline' // Commented out for now - will be used when API is ready // import { useQuery } from '@tanstack/react-query' // import axios from 'axios' // interface BudgetData { // jurisdiction: string // state: string // fiscal_year: string // total_budget: number // budget_change: number // categories: { // education: number // infrastructure: number // public_safety: number // health: number // other: number // } // } export default function Analytics() { const [selectedState, setSelectedState] = useState('all') const [fiscalYear, setFiscalYear] = useState('2024') // Commented out for now - will be implemented when API is ready // const { data, isLoading } = useQuery({ // queryKey: ['budget-analytics', selectedState, fiscalYear], // queryFn: async () => { // const response = await axios.get('/api/budgets', { // params: { state: selectedState, year: fiscalYear }, // }) // return response.data.budgets || [] // }, // }) return (
{/* Header */}

Budget Analysis

Explore city, county, and school budgets with budget-to-minutes delta analysis

{/* Filter Controls */}
{/* Stats Overview */}

Jurisdictions Tracked

90,000+

Budget Records

15,000+

Avg Budget Increase

+3.2%

States Covered

50

{/* Features Section */}

Budget-to-Minutes Delta Analysis

Compare what governments say in meeting minutes versus what they actually allocate in budgets.

  • Track rhetoric vs. reality in budget decisions
  • Identify funding priorities and gaps
  • Monitor year-over-year changes

Budget Categories Tracked

Education & Schools 35%
Public Safety 25%
Infrastructure 20%
Health & Human Services 15%
{/* Coming Soon / Data Integration Notice */}

Budget Data Integration In Progress

We're currently integrating budget data from cities, counties, and school districts across all 50 states. Check back soon for interactive budget comparisons, trend analysis, and meeting-to-budget correlation insights.

) }