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
26 lines
609 B
import React from "react";
|
|
import { getTranslation } from "../core/i18n/I18NHandler";
|
|
import { Button } from "@geist-ui/core";
|
|
|
|
const redirectToPage = (redirectLoc) => {
|
|
window.location.href = "./" + redirectLoc;
|
|
};
|
|
|
|
function InfoPageComponent({ children, redirectLoc }) {
|
|
return (
|
|
<div>
|
|
{children}
|
|
<div style={{ width: "fit-content", margin: "40px auto" }}>
|
|
<Button
|
|
onClick={() => {
|
|
redirectToPage(redirectLoc);
|
|
}}
|
|
>
|
|
{getTranslation("continue")}
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default InfoPageComponent;
|