mirror of
https://github.com/calli-eve/eve-pi.git
synced 2026-02-13 11:18:47 +01:00
Add plan mode to show character comments in the table
This commit is contained in:
18
src/app/components/PlanModeButton/PlanModeButton.tsx
Normal file
18
src/app/components/PlanModeButton/PlanModeButton.tsx
Normal 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>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user