bitburner-src/src/GameOptions/ui/GameOptionsPage.tsx

18 lines
441 B
TypeScript
Raw Normal View History

import { Paper, Typography } from "@mui/material";
2022-04-17 19:51:00 +02:00
import React from "react";
import { OptionsTabName } from "./GameOptionsRoot";
2022-04-17 19:51:00 +02:00
interface IProps {
children: React.ReactNode;
title: OptionsTabName;
2022-04-17 19:51:00 +02:00
}
export const GameOptionsPage = (props: IProps): React.ReactElement => {
return (
<Paper sx={{ height: "fit-content", p: 1 }}>
<Typography variant="h6">{props.title}</Typography>
{props.children}
2022-04-17 19:51:00 +02:00
</Paper>
);
};