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