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