'use client' import type { ReactNode } from 'react' import { Description, FieldError, Label } from '@heroui/react' import { CONSUMER_FIELD_DESCRIPTION_CLASS, CONSUMER_FIELD_LABEL_CLASS } from '@/components/consumer/input/consumerInputStyles' import { buildOutsideLabel } from '@/components/formElements/input/inputUtils' import { cn } from '@/lib/cn' interface Props { children: ReactNode className?: string description?: ReactNode errorMessage?: string invalid?: boolean label?: string labelIcon?: ReactNode required?: boolean } export default function ConsumerFieldShell({ children, className, description, errorMessage, invalid, label, labelIcon = null, required, }: Props) { return (
{label ? ( ) : null} {children} {description ? {description} : null} {invalid && errorMessage ? {errorMessage} : null}
) }