mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-15 11:56:23 +00:00
49 lines
1012 B
TypeScript
49 lines
1012 B
TypeScript
|
import React from "react";
|
||
|
import { useTranslation } from "react-i18next";
|
||
|
import {
|
||
|
Dialog,
|
||
|
DialogTitle,
|
||
|
DialogActions,
|
||
|
DialogContent,
|
||
|
DialogContentText,
|
||
|
Button,
|
||
|
} from "@mui/material"
|
||
|
import { Link } from 'react-router-dom'
|
||
|
|
||
|
type Props = {
|
||
|
open: boolean;
|
||
|
onClose: () => void;
|
||
|
}
|
||
|
|
||
|
const NoRobotDialog = ({
|
||
|
open,
|
||
|
onClose,
|
||
|
}: Props): JSX.Element => {
|
||
|
const { t } = useTranslation();
|
||
|
|
||
|
return (
|
||
|
<Dialog
|
||
|
open={open}
|
||
|
onClose={onClose}
|
||
|
>
|
||
|
<DialogTitle>
|
||
|
{t("You do not have a robot avatar")}
|
||
|
</DialogTitle>
|
||
|
|
||
|
<DialogContent>
|
||
|
<DialogContentText>
|
||
|
{t("You need to generate a robot avatar in order to become an order maker")}
|
||
|
</DialogContentText>
|
||
|
</DialogContent>
|
||
|
|
||
|
<DialogActions>
|
||
|
<Button onClick={onClose} autoFocus>{t("Go back")}</Button>
|
||
|
<Button onClick={onClose} to="/" component={Link}>{t("Generate Robot")}</Button>
|
||
|
</DialogActions>
|
||
|
|
||
|
</Dialog>
|
||
|
)
|
||
|
}
|
||
|
|
||
|
export default NoRobotDialog;
|