import FormControlMain from './FormControl'; import FormControlError from './FormControlError'; import FormControlErrorText from './FormControlErrorText'; import FormControlErrorIcon from './FormControlErrorIcon'; import FormControlHelper from './FormControlHelper'; import FormControlHelperText from './FormControlHelper'; import FormControlLabel from './FormControlLabel'; import FormControlLabelText from './FormControlLabelText'; import type { IFormControlComponentType } from './types'; export const createFormControl = < Root, Error, ErrorText, ErrorIcon, Label, LabelText, LabelAstrick, Helper, HelperText >({ Root, Error, ErrorText, ErrorIcon, Label, LabelText, LabelAstrick, Helper, HelperText, }: { Root: React.ComponentType; Error: React.ComponentType; ErrorText: React.ComponentType; ErrorIcon: React.ComponentType; Label: React.ComponentType