Files
Checkmate/Client/src/Pages/Monitors/Configure/index.jsx
T

42 lines
987 B
React
Raw Normal View History

2024-07-19 14:35:11 -04:00
import { useNavigate } from "react-router";
import Button from "../../../Components/Button";
import WestRoundedIcon from "@mui/icons-material/WestRounded";
import "./index.css";
import { useTheme } from "@emotion/react";
/**
* Configure component displays monitor configurations and allows for editing actions.
* @component
*/
const Configure = () => {
const navigate = useNavigate();
const theme = useTheme();
return (
<div
className="configure-monitor"
style={{
maxWidth: "1200px",
padding: `${theme.content.pY} ${theme.content.pX}`,
}}
>
<Button
level="tertiary"
label="Back"
img={<WestRoundedIcon />}
onClick={() => navigate(-1)}
sx={{
backgroundColor: "#f4f4f4",
mb: theme.gap.medium,
px: theme.gap.ml,
"& svg.MuiSvgIcon-root": {
pr: theme.gap.small,
},
}}
/>
</div>
);
};
export default Configure;