import React from "react"; import { TaxType } from "../../../api/stats"; import { AVAILABLE_YEARS, DEPARTEMENTS } from "./scatterplot.utils"; import "./ScatterPlot.css"; const TAX_LABELS: Record = { tfpnb: "tfpnb", tfpb: "tfpb", th: "th", cfe: "cfe", }; type Props = { selectedTax: TaxType; year: number; department: string; onTaxChange: (t: TaxType) => void; onYearChange: (y: number) => void; onDepartmentChange: (y: string) => void; }; export const ScatterPlotControls: React.FC = ({ selectedTax, year, department, onTaxChange, onYearChange, onDepartmentChange, }) => { return (
{(Object.keys(TAX_LABELS) as TaxType[]).map((tax) => ( ))}
En
De
); };