Code: Select all
export const Input = memo((props: InputProps) => {
// const [read, setRead] = useState(false) ;
return (
{props.inputVaraint == "TextBox" &&
props.onInput!(e)
: () => {}
}
ref={props.ref as Ref}
spellCheck={false}
placeholder={props.placeholder}
className={`${DefaultInputStyle} ${props.customPadding} ${InputStyle.size[props.size]} `}
required
/>
}
{props.inputVaraint == "Password" &&
props.onInput!(e)
: () => {}
}
ref={props.ref as Ref}
spellCheck={false}
placeholder={props.placeholder}
className={`${DefaultInputStyle} ${props.customPadding} ${InputStyle.size[props.size]}`}
required
/>
}
{props.inputVaraint == "TextArea" &&
}
)
})