import { Box, Container, Typography } from "@mui/material"; import React, { useState } from "react"; import { GameOptionsSidebar } from "./GameOptionsSidebar"; import { GameplayPage } from "./GameplayPage"; import { InterfacePage } from "./InterfacePage"; import { MiscPage } from "./MiscPage"; import { NumericDisplayPage } from "./NumericDisplayOptions"; import { RemoteAPIPage } from "./RemoteAPIPage"; import { SystemPage } from "./SystemPage"; interface IProps { save: () => void; export: () => void; forceKill: () => void; softReset: () => void; reactivateTutorial: () => void; } export type OptionsTabName = "System" | "Interface" | "Numeric Display" | "Gameplay" | "Misc" | "Remote API"; const tabs: Record = { System: , Interface: , "Numeric Display": , Gameplay: , Misc: , "Remote API": , }; export function GameOptionsRoot(props: IProps): React.ReactElement { const [currentTab, setCurrentTab] = useState("System"); return ( Options {tabs[currentTab]} ); }