import React from "react"; import { Container, Tab, Tabs } from "@mui/material"; import { GoInstructionsPage } from "./GoInstructionsPage"; import { BorderInnerSharp, Help, ManageSearch, History } from "@mui/icons-material"; import { GoStatusPage } from "./GoStatusPage"; import { GoHistoryPage } from "./GoHistoryPage"; import { GoGameboardWrapper } from "./GoGameboardWrapper"; import { boardStyles } from "../boardState/goStyles"; export function GoRoot(): React.ReactElement { const { classes } = boardStyles(); const [value, setValue] = React.useState(0); function handleChange(event: React.SyntheticEvent, tab: number): void { setValue(tab); } function showInstructions() { setValue(3); } return ( } iconPosition={"start"} className={classes.tab} /> } iconPosition={"start"} className={classes.tab} /> } iconPosition={"start"} className={classes.tab} /> } iconPosition={"start"} className={classes.tab} /> {value === 0 && } {value === 1 && } {value === 2 && } {value === 3 && } ); }