--- /** * DEFAULT CONTROL COMPONENT */ import type { Radio } from 'common/types'; import type { FormControl } from '../core/form-control'; import Input from './controls/Input.astro'; import RadioGroup from './controls/RadioGroup.astro'; import Errors from './Errors.astro'; import Label from './Label.astro'; export interface Props { control: FormControl; showValidationHints: boolean; showErrors?: boolean; // feature flag for showing validation errors } const { control, showValidationHints, showErrors = false } = Astro.props; const hasErrors: boolean | null = !!control.errors?.length; ---