You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
689 B

2 years ago
  1. import React, { useContext } from "react";
  2. import PropTypes from 'prop-types';
  3. import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
  4. import {faCommentAlt} from "@fortawesome/free-solid-svg-icons";
  5. import { AppContext } from "../../AppContext"
  6. const Gform = (props) => {
  7. const context = useContext(AppContext);
  8. console.log(context);
  9. return (
  10. <a
  11. className={props.className}
  12. href={context.feedbackForm}
  13. target="_blank"
  14. rel="noopener noreferrer"
  15. >
  16. <FontAwesomeIcon icon={faCommentAlt} className="mr-2" />
  17. Votre avis nous intéresse !
  18. </a>
  19. );
  20. }
  21. Gform.propTypes = {
  22. className: PropTypes.string,
  23. };
  24. export default Gform;