import { VisuallyHidden, Radio, RadioGroup, useRadioStore } from '@ariakit/react' import { classNames } from '@standardnotes/utils' type Props = { items: { label: string; value: string }[] value: string onChange: (value: string) => void className?: string } const RadioButtonGroup = ({ value, items, onChange, className }: Props) => { const radio = useRadioStore({ value, orientation: 'horizontal', setValue(value) { onChange(value as string) }, }) return ( {items.map(({ label, value: itemValue }) => ( ))} ) } export default RadioButtonGroup