import React from "react";
import PropTypes from "prop-types";
import { InputField, InputFieldLabel } from "../EditProfile.styled";
import { useTranslation } from "react-i18next";

const WebsiteField = (props) => {
  const { t } = useTranslation();
  return (
    <>
      <InputFieldLabel
        leftText={t("editProfile.website").toUpperCase()}
        labelWebsite
      />
      <InputField
        name="firmWebsite"
        value={props.formik.values.firmWebsite}
        onChange={props.formik.handleChange}
        error={props.formik.errors.firmWebsite}
        margin="normal"
        fullWidth
      />
    </>
  );
};

WebsiteField.propTypes = {
  formik: PropTypes.any,
};

export default WebsiteField;
