import { Form, Input } from "antd"; import React from "react"; import useFormField from "../../../Hooks/useFormField"; import { MdOutlineEdit } from "react-icons/md"; import { Field } from "formik"; import { ValidationFieldPropsInput } from "../utils/types"; const Default = ({ name, label, placeholder, isDisabled, onChange, type, no_label, label_icon, label2, ...props }: ValidationFieldPropsInput) => { const { errorMsg, isError, t } = useFormField(name, props); return (
{label2 ? ( ) : no_label ? ( ) : label_icon ? (
) : ( )}
); }; export default React.memo(Default);