import type { PropsWithChildren } from 'react'; import classnames from 'classnames'; import { slottableComponent } from '../HOC/slottableComponent'; import type { LunaticError } from '../../../use-lunatic/type'; import { ComponentErrors } from '../ComponentErrors/ComponentErrors'; type Props = PropsWithChildren<{ classNamePrefix?: string; className?: string; id?: string; classStyle?: string; errors?: LunaticError[]; }>; export const ComboboxContainer = slottableComponent( 'ComboboxContainer', ({ children, className, classNamePrefix, id, classStyle = 'default-style', errors, }) => (
{children} {/* Errors are called here so that they can be customised */} {errors && }
) );