2022-08-29 22:47:51 +02:00
|
|
|
import { Paper, Typography } from "@mui/material";
|
2022-04-17 19:51:00 +02:00
|
|
|
import React from "react";
|
2023-02-11 19:18:50 +01:00
|
|
|
import { OptionsTabName } from "./GameOptionsRoot";
|
2022-04-17 19:51:00 +02:00
|
|
|
|
|
|
|
interface IProps {
|
2022-08-29 22:36:08 +02:00
|
|
|
children: React.ReactNode;
|
2023-02-11 19:18:50 +01:00
|
|
|
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>
|
2022-08-29 22:36:08 +02:00
|
|
|
{props.children}
|
2022-04-17 19:51:00 +02:00
|
|
|
</Paper>
|
|
|
|
);
|
|
|
|
};
|