import clsx from 'clsx'; import './BoxSelector.css'; import styles from './BoxSelector.module.css'; import { BoxSelectorItem } from './BoxSelectorItem'; import { BoxSelectorOption } from './types'; export interface Props { radioName: string; value: T; onChange(value: T, limitedToBE: boolean): void; options: BoxSelectorOption[]; } export function BoxSelector({ radioName, value, options, onChange, }: Props) { return (
{options .filter((option) => !option.hide) .map((option) => ( ))}
); }