--- import { omit } from 'lodash-es' import { cn } from '../lib/cn' import { baseInputClassNames } from '../lib/formInputs' import InputWrapper from './InputWrapper.astro' import type { ComponentProps, HTMLAttributes } from 'astro/types' type Props = Omit, 'children' | 'inputId' | 'required'> & { options: { label: string value: string disabled?: boolean }[] selectProps?: Omit, 'name' | 'value'> selectedValue?: string[] | string } const { options, selectProps, selectedValue, ...wrapperProps } = Astro.props const inputId = selectProps?.id ?? Astro.locals.makeId(`input-${wrapperProps.name}`) const hasError = !!wrapperProps.error && wrapperProps.error.length > 0 ---