AboutModal.jsx 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import React from "react";
  2. import { useTranslation } from "react-i18next";
  3. import { Trans } from "react-i18next";
  4. import Modal from "../ui/Modal";
  5. const AboutModal = ({ show, setShow }) => {
  6. const { t } = useTranslation();
  7. return (
  8. <Modal
  9. title={t("About")}
  10. setShow={setShow}
  11. show={show}
  12. footer={
  13. <div style={{ display: "flex", justifyContent: "end" }}>
  14. <button
  15. onClick={() => {
  16. setShow(false);
  17. }}
  18. className="button"
  19. >
  20. {t("Close")}
  21. </button>
  22. </div>
  23. }
  24. >
  25. <Trans i18nKey="about">
  26. <p>
  27. Air Board Game is a plateform designed to play any board games with
  28. your friends online. For more information or to access source code
  29. visit <a href="https://github.com/jrmi/airboardgame">Github</a>.
  30. </p>
  31. <h3>RGPD</h3>
  32. <p>
  33. No personnal data are collected. When you use your email to login,
  34. this information is lost and not used for anything else than sending
  35. you an authentication link.
  36. </p>
  37. <h3>Credits</h3>
  38. <p>Thanks to everybody !</p>
  39. </Trans>
  40. </Modal>
  41. );
  42. };
  43. export default AboutModal;