import { NavLink, Outlet, useLocation } from 'react-router-dom' import { DATA_EXPLORER_JURISDICTION_QUALITY, DATA_EXPLORER_MAP_BASE, DATA_EXPLORER_SCORECARD, } from '../utils/dataExplorerPaths' function tabCls({ isActive }: { isActive: boolean }) { return [ 'inline-flex items-center gap-1.5 border-b-2 px-2.5 py-1.5 text-sm font-medium transition-colors', isActive ? 'border-teal-600 text-teal-800' : 'border-transparent text-slate-600 hover:border-slate-300 hover:text-slate-900', ].join(' ') } export default function DataExplorerLayout() { const { pathname } = useLocation() const onMap = pathname.startsWith(`${DATA_EXPLORER_MAP_BASE}/`) || pathname === DATA_EXPLORER_MAP_BASE const onScorecard = pathname.startsWith(DATA_EXPLORER_SCORECARD) const onJurisdictionQuality = pathname === DATA_EXPLORER_JURISDICTION_QUALITY || pathname.startsWith(`${DATA_EXPLORER_JURISDICTION_QUALITY}/`) return (

Data explorer

American Community Survey (ACS) 5-year estimates — map and scorecard — plus jurisdiction website mapping coverage (counties, cities, school districts) from directory seeds and dbt marts.

{(onMap || onScorecard || onJurisdictionQuality) && (

{onMap ? 'Choropleth and drill-downs match the static census map bundle.' : onScorecard ? 'Trend windows follow the vintage list in the published bundle (1-, 3-, and 5-year lookbacks when years exist).' : 'Mapping rates use NACo, USCM, NCES directory, GSA .gov, Wikidata, and overrides — snapshot from `web_app/public/data/jurisdiction_mapping_quality.json`.'}

)}
{/* Workspace: mid-slate so white cards read clearly (slate-100 alone looked “all white”). */}
) }