import { Form, Input } from "antd"; import React from "react"; import useFormField from "../../../../../../Hooks/useFormField"; import { MdOutlineEdit } from "react-icons/md"; import { Field } from "formik"; const { TextArea } = Input; const TextField = ({ name, label, label2, placeholder, isDisabled, onChange, props, no_label, label_icon, className, }: any) => { const newName = `Questions[${name}].content`; const { formik, isError, errorMsg, t } = useFormField(newName, props); const TextFilehandleChange = ( e: React.ChangeEvent, ) => { // console.log('Change:', e.target.value); formik.setFieldValue(newName, e.target.value); }; return (
{no_label ? ( ) : label_icon ? (
) : ( )}
); }; export default React.memo(TextField);