/** * React Component for displaying the total production and production rate * of scripts on the 'Active Scripts' UI page */ import * as React from "react"; import { MoneyRate } from "../React/MoneyRate"; import { use } from "../Context"; import Typography from "@mui/material/Typography"; import { Theme } from "@mui/material/styles"; import makeStyles from "@mui/styles/makeStyles"; import createStyles from "@mui/styles/createStyles"; import Table from "@mui/material/Table"; import TableBody from "@mui/material/TableBody"; import TableCell from "@mui/material/TableCell"; import TableRow from "@mui/material/TableRow"; const useStyles = makeStyles((theme: Theme) => createStyles({ cell: { borderBottom: "none", padding: theme.spacing(1), margin: theme.spacing(1), whiteSpace: "nowrap", }, size: { width: "1px", }, }), ); export function ScriptProduction(): React.ReactElement { const player = use.Player(); const classes = useStyles(); const prodRateSinceLastAug = player.scriptProdSinceLastAug / (player.playtimeSinceLastAug / 1000); return ( Total online production of Active scripts: Total online production since last Aug installation: ()
); }