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