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.map((option) => option.hide ? null : ( ) )}
); }