2022-05-08 22:07:49 +00:00
|
|
|
import React from "react";
|
|
|
|
import { useTranslation } from "react-i18next";
|
|
|
|
import {
|
|
|
|
Dialog,
|
|
|
|
DialogTitle,
|
|
|
|
DialogActions,
|
|
|
|
DialogContent,
|
|
|
|
DialogContentText,
|
2022-05-16 20:42:51 +00:00
|
|
|
Button,
|
|
|
|
Link,
|
2022-05-08 22:07:49 +00:00
|
|
|
} from "@mui/material"
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
open: boolean;
|
|
|
|
onClose: () => void;
|
|
|
|
}
|
|
|
|
|
2022-05-16 20:42:51 +00:00
|
|
|
const LearnDialog = ({
|
2022-05-08 22:07:49 +00:00
|
|
|
open,
|
|
|
|
onClose,
|
|
|
|
}: Props): JSX.Element => {
|
|
|
|
const { t } = useTranslation();
|
|
|
|
|
|
|
|
return (
|
|
|
|
<Dialog
|
|
|
|
open={open}
|
|
|
|
onClose={onClose}
|
|
|
|
>
|
|
|
|
<DialogTitle>
|
2022-05-17 22:30:11 +00:00
|
|
|
{t("Learn RoboSats")}
|
2022-05-08 22:07:49 +00:00
|
|
|
</DialogTitle>
|
|
|
|
|
|
|
|
<DialogContent>
|
|
|
|
<DialogContentText>
|
2022-05-17 22:30:11 +00:00
|
|
|
{t("You are about to visit Learn RoboSats. It hosts tutorials and documentation to help you learn how to use RoboSats and understand how it works.")}
|
2022-05-08 22:07:49 +00:00
|
|
|
</DialogContentText>
|
|
|
|
</DialogContent>
|
|
|
|
|
|
|
|
<DialogActions>
|
2022-05-16 20:42:51 +00:00
|
|
|
<Button onClick={onClose}>{t("Back")}</Button>
|
|
|
|
<Button onClick={onClose} autoFocus component={Link} href="https://learn.robosats.com" target="_blank">
|
|
|
|
{t("Let's go!")}
|
|
|
|
</Button>
|
2022-05-08 22:07:49 +00:00
|
|
|
</DialogActions>
|
|
|
|
|
|
|
|
</Dialog>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2022-05-16 20:42:51 +00:00
|
|
|
export default LearnDialog;
|