--- import { cn } from '../lib/cn' import { baseInputClassNames } from '../lib/formInputs' import InputWrapper from './InputWrapper.astro' import type { ComponentProps } from 'astro/types' type Props = Omit, 'children' | 'inputId'> & { accept?: string disabled?: boolean multiple?: boolean removeCheckbox?: { name: string label: string } } const { accept, disabled, multiple, removeCheckbox, classNames, ...wrapperProps } = Astro.props const inputId = Astro.locals.makeId(`input-${wrapperProps.name}`) const hasError = !!wrapperProps.error && wrapperProps.error.length > 0 --- { !!removeCheckbox && ( ) }