import ConfigType from '../../../common/types/configType' type InputProps = { title: string alt?: string keyName: keyof ConfigType value: string placeholder: string disabled?: boolean handleChange: (value: any, key: keyof ConfigType) => void } const InputWrapper = ({ title, alt, keyName, value, placeholder, disabled, handleChange }: InputProps) => { return (
{ handleChange({ val: e.target.value, required: true }, keyName) }} />
) } export default InputWrapper