Alert mode to filter only planets that need an action

This commit is contained in:
Calli
2023-10-21 07:52:56 +03:00
parent e69e65059e
commit 77da81efea
7 changed files with 77 additions and 15 deletions

View File

@@ -0,0 +1,21 @@
import { SessionContext } from "@/app/context/Context";
import { Button, Tooltip } from "@mui/material";
import { useContext } from "react";
export const AlertModeButton = () => {
const { alertMode, toggleAlertMode } = useContext(SessionContext);
return (
<Tooltip title="Toggle alert mode to show only accounts and planets that need action.">
<Button
style={{
backgroundColor: alertMode
? "rgba(144, 202, 249, 0.08)"
: "inherit",
}}
onClick={toggleAlertMode}
>
Alert mode
</Button>
</Tooltip>
);
};