--- /** * RADIO GROUP COMPONENT */ import type { Radio, ControlOption } from '@astro-reactive/common'; export interface Props { control: Radio; readOnly?: boolean; } const { control, readOnly = false } = Astro.props; const options = control.options.map((option: string | ControlOption) => { if (typeof option === 'string') { return { label: option, value: option, }; } return option; }); --- { options.map((option: ControlOption, index: number) => (