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.

26 lines
609 B

  1. import React from "react";
  2. import { getTranslation } from "../core/i18n/I18NHandler";
  3. import { Button } from "@geist-ui/core";
  4. const redirectToPage = (redirectLoc) => {
  5. window.location.href = "./" + redirectLoc;
  6. };
  7. function InfoPageComponent({ children, redirectLoc }) {
  8. return (
  9. <div>
  10. {children}
  11. <div style={{ width: "fit-content", margin: "40px auto" }}>
  12. <Button
  13. onClick={() => {
  14. redirectToPage(redirectLoc);
  15. }}
  16. >
  17. {getTranslation("continue")}
  18. </Button>
  19. </div>
  20. </div>
  21. );
  22. }
  23. export default InfoPageComponent;