import { MATRIX_TAB_LABEL } from '../utils/matrixSuggest' import { NavLink, Outlet, useLocation } from 'react-router-dom' import { DATA_EXPLORER_JURISDICTION_QUALITY, DATA_EXPLORER_MAP_BASE, DATA_EXPLORER_MATRIX, DATA_EXPLORER_SCORECARD, } from '../utils/dataExplorerPaths' function tabCls({ isActive }: { isActive: boolean }) { return [ 'inline-flex items-center gap-1.5 border-b-2 px-2 py-1 text-[13px] font-medium sm:px-2.5 sm:py-1.5 sm:text-sm 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 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.

{(onScorecard || onJurisdictionQuality) && (

{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”). */}
) }