Add plan mode to show character comments in the table

This commit is contained in:
Calli
2023-10-02 12:29:32 +03:00
parent 1d75dfb286
commit 77af55ce2f
8 changed files with 81 additions and 20 deletions

View File

@@ -0,0 +1,18 @@
import { SessionContext } from "@/app/context/Context";
import { ToggleButton, Tooltip } from "@mui/material";
import { useContext } from "react";
export const PlanModeButton = () => {
const { planMode, togglePlanMode } = useContext(SessionContext);
return (
<Tooltip title="Toggle plan mode that show layout for widescreen">
<ToggleButton
value="check"
selected={planMode}
onChange={togglePlanMode}
>
Plan mode
</ToggleButton>
</Tooltip>
);
};