mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-02-27 23:24:39 +01:00
32 lines
840 B
TypeScript
32 lines
840 B
TypeScript
import { Box, Table } from "@mui/material";
|
|
import * as React from "react";
|
|
import { ActiveFragment } from "../ActiveFragment";
|
|
import { BaseGift } from "../BaseGift";
|
|
import { Grid } from "./Grid";
|
|
import { zeros } from "../Helper";
|
|
|
|
interface IProps {
|
|
width: number;
|
|
height: number;
|
|
fragments: ActiveFragment[];
|
|
}
|
|
|
|
export function DummyGrid(props: IProps): React.ReactElement {
|
|
const gift = new BaseGift(props.width, props.height, props.fragments);
|
|
const ghostGrid = zeros(props.width, props.height);
|
|
return (
|
|
<Box>
|
|
<Table sx={{ width: props.width, height: props.height }}>
|
|
<Grid
|
|
width={props.width}
|
|
height={props.height}
|
|
ghostGrid={ghostGrid}
|
|
gift={gift}
|
|
enter={() => undefined}
|
|
click={() => undefined}
|
|
/>
|
|
</Table>
|
|
</Box>
|
|
);
|
|
}
|