import { Button } from '@vegaprotocol/ui-toolkit'; interface ButtonRadioProps { name: string; options: Array<{ value: T; text: string }>; currentOption: T | null; onSelect: (option: T) => void; } export const ButtonRadio = ({ name, options, currentOption, onSelect, }: ButtonRadioProps) => { return (
{options.map((option) => { const isSelected = option.value === currentOption; return ( ); })}
); };