import React, { useState } from 'react' export default function StatsBar({ overview, viewportSummary, featureCount, loading, isMobile }) { const [collapsed, setCollapsed] = useState(false) if (!overview) return null const cards = [ { label: 'In View', value: viewportSummary?.count || featureCount, icon: '📍', desc: 'Entities visible on map', }, { label: 'Mapped', value: overview.total_entities, icon: '🏢', desc: 'Curated entities in our database', }, { label: 'Startups', value: overview.by_type?.startup || 0, icon: '🚀', desc: 'Mapped startups (India has 223K+ DPIIT-registered)', }, { label: 'Unicorns', value: overview.unicorn_count || 0, icon: '🦄', desc: 'Valued >$1B', }, { label: 'Women-led', value: overview.women_led_count || 0, icon: '👩', desc: 'In our dataset (India has 102K+ women-led startups)', }, { label: 'Funding', value: overview.total_funding_display, icon: '💰', desc: 'Mapped entities only — not total Indian startup funding', isText: true, }, ] return (
{typeof card.value === 'number' ? card.value.toLocaleString() : card.value}
{card.label}