import { Checkbox, FormControlLabel, Grid } from "@mui/material"; import { useAtom } from "jotai"; import { showBestMoveArrowAtom, showPlayerMoveArrowAtom, } from "../analysis/states"; export default function ArrowOptions() { const [showBestMove, setShowBestMove] = useAtom(showBestMoveArrowAtom); const [showPlayerMove, setShowPlayerMove] = useAtom(showPlayerMoveArrowAtom); return ( setShowBestMove(checked)} /> } label="Show best move green arrow" sx={{ marginX: 0 }} /> setShowPlayerMove(checked)} /> } label="Show player move yellow arrow" sx={{ marginX: 0 }} /> ); }