mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-15 20:06:24 +00:00
51 lines
1.1 KiB
TypeScript
51 lines
1.1 KiB
TypeScript
import React from "react";
|
|
import { useTranslation } from "react-i18next";
|
|
import {
|
|
Dialog,
|
|
DialogTitle,
|
|
DialogActions,
|
|
DialogContent,
|
|
DialogContentText,
|
|
Button,
|
|
Link,
|
|
} from "@mui/material"
|
|
|
|
type Props = {
|
|
open: boolean;
|
|
onClose: () => void;
|
|
}
|
|
|
|
const LearnDialog = ({
|
|
open,
|
|
onClose,
|
|
}: Props): JSX.Element => {
|
|
const { t } = useTranslation();
|
|
|
|
return (
|
|
<Dialog
|
|
open={open}
|
|
onClose={onClose}
|
|
>
|
|
<DialogTitle>
|
|
{t("Learn RoboSats")}
|
|
</DialogTitle>
|
|
|
|
<DialogContent>
|
|
<DialogContentText>
|
|
{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.")}
|
|
</DialogContentText>
|
|
</DialogContent>
|
|
|
|
<DialogActions>
|
|
<Button onClick={onClose}>{t("Back")}</Button>
|
|
<Button onClick={onClose} autoFocus component={Link} href="https://learn.robosats.com" target="_blank">
|
|
{t("Let's go!")}
|
|
</Button>
|
|
</DialogActions>
|
|
|
|
</Dialog>
|
|
)
|
|
}
|
|
|
|
export default LearnDialog;
|