Files
Checkmate/client/src/Pages/StatusPage/Status/Components/AdminLink/index.jsx
T

36 lines
774 B
React
Raw Normal View History

2025-02-04 15:45:28 -08:00
// Components
import { Box, Typography } from "@mui/material";
// Utils
import { useTheme } from "@mui/material/styles";
import { useNavigate } from "react-router-dom";
2025-03-17 01:16:42 +05:30
import { useTranslation } from "react-i18next";
2025-02-04 15:45:28 -08:00
const AdminLink = () => {
const theme = useTheme();
2025-03-17 01:16:42 +05:30
const { t } = useTranslation();
2025-02-04 15:45:28 -08:00
const navigate = useNavigate();
return (
<Box>
<Typography
className="forgot-p"
display="inline-block"
color={theme.palette.primary.contrastText}
>
2025-03-17 01:16:42 +05:30
{t("administrator")}
2025-02-04 15:45:28 -08:00
</Typography>
<Typography
component="span"
color={theme.palette.accent.main}
ml={theme.spacing(2)}
sx={{ cursor: "pointer" }}
onClick={() => navigate("/login")}
>
2025-03-17 01:16:42 +05:30
{t("loginHere")}
2025-02-04 15:45:28 -08:00
</Typography>
</Box>
);
};
export default AdminLink;