/* Rapporten screen: CSV en GeoJSON export per gemeente */ function SchermRapporten({ gemeenten, defaultGemeente }) { const [gemeente, setGemeente] = useState(() => defaultGemeente || ''); function download(type) { if (!gemeente) return; window.location = `${API}/rapporten/${type}?gemeente_code=${gemeente}`; } return (

Rapporten

Exporteer detectieresultaten per gemeente als CSV of GeoJSON.

Exporteren

download('csv')} disabled={!gemeente}> Download CSV download('geojson')} disabled={!gemeente}> Download GeoJSON
{!gemeente && (

Selecteer eerst een gemeente om te kunnen exporteren.

)}
); } window.SchermRapporten = SchermRapporten;