import { Field, FormikValues } from 'formik' import _identity from 'lodash/identity' import _map from 'lodash/map' import React, { FC } from 'react' import { replaceVarInString } from '../../../utils' import { CheckboxField, CustomField, DatePickerField, PhoneNumberField, SelectField, } from '../index' import { getFieldClassNames, getValidateFunctions, insertHTML } from './utils' export interface IFieldsSectionProps { formFields?: IFormFieldsSection[]; values: FormikValues; setFieldValue: ( field: string, value: FormikValues | string | number, shouldValidate?: boolean | undefined ) => void; disableField?: string; countries?: { [key: string]: string | number }[]; states?: { [key: string]: string | number }[]; theme?: 'dark' | 'light'; containerClass?: string; setPhoneValidationIsLoading?: (isLoading: boolean) => void; onFieldChange?: (name: string, value: string | number) => void; } const SectionContainer: FC<{ className: string }> = ({ children, className, }) =>