import { Field, Form, Formik } from "formik"; import FormGroup from "../components/FormGroup"; import { useState } from "react"; import { faEyeSlash, faEye } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; const ChannelFields = () => { const [showPwd, setShowPwd] = useState(false); const initialValues = { backOfficeURL: "", username: "", password: "", connectTimeoutSeconds: 0, readTimeoutSeconds: 0, }; const handleSubmit = (values) => { console.log(values); }; return (
setShowPwd((s) => !s)} icon={showPwd ? faEyeSlash : faEye} />
); }; export default ChannelFields;