mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-23 08:02:04 +02:00
20 lines
751 B
TypeScript
20 lines
751 B
TypeScript
import React, { useState } from "react";
|
|
import Button from "@mui/material/Button";
|
|
import Tooltip from "@mui/material/Tooltip";
|
|
import { ThemeEditorModal } from "./ThemeEditorModal";
|
|
import ColorizeIcon from "@mui/icons-material/Colorize";
|
|
|
|
export function ThemeEditorButton(): React.ReactElement {
|
|
const [themeEditorOpen, setThemeEditorOpen] = useState(false);
|
|
return (
|
|
<>
|
|
<Tooltip title="The theme editor allows you to modify the colors the game uses.">
|
|
<Button id="bb-theme-editor-button" startIcon={<ColorizeIcon />} onClick={() => setThemeEditorOpen(true)}>
|
|
Theme Editor
|
|
</Button>
|
|
</Tooltip>
|
|
<ThemeEditorModal open={themeEditorOpen} onClose={() => setThemeEditorOpen(false)} />
|
|
</>
|
|
);
|
|
}
|