mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-27 11:27:04 +02:00
33 lines
651 B
TypeScript
33 lines
651 B
TypeScript
/**
|
|
* Wrapper around material-ui's Button component that styles it with
|
|
* Bitburner's UI theme
|
|
*/
|
|
|
|
import React from "react";
|
|
import { Paper, PaperProps } from "@mui/material";
|
|
|
|
import makeStyles from "@mui/styles/makeStyles";
|
|
|
|
const useStyles = makeStyles({
|
|
root: {
|
|
backgroundColor: "rgb(30, 30, 30)",
|
|
border: "2px solid #000",
|
|
borderRadius: "10px",
|
|
display: "inline-block",
|
|
flexWrap: "wrap",
|
|
padding: "10px",
|
|
},
|
|
});
|
|
|
|
export const MuiPaper: React.FC<PaperProps> = (props: PaperProps) => {
|
|
return (
|
|
<Paper
|
|
{...props}
|
|
classes={{
|
|
...useStyles(),
|
|
...props.classes,
|
|
}}
|
|
/>
|
|
);
|
|
};
|