// components/BenchmarkComparisonSelector.tsx import React from "react"; import { Checkbox } from "@/components/ui/checkbox"; interface Props { allMetrics: string[]; selected: string[]; onChange: (metric: string, checked: boolean) => void; } export const BenchmarkComparisonSelector: React.FC = ({ allMetrics, selected, onChange, }) => { return (
{allMetrics.map((metric) => (
onChange(metric, !!checked)} />
))}
); };