import Brightness7Icon from "@mui/icons-material/Brightness7"; import DarkModeIcon from "@mui/icons-material/DarkMode"; import { IconButton, Tooltip } from "@mui/material"; import { useDarkTheme } from "../context_providers/DarkThemeProvider"; export function DarkThemeButton(): React.ReactElement { const darkTheme = useDarkTheme(); return ( darkTheme.setEnabled(!darkTheme.enabled)} style={{ color: "inherit" }} > {!darkTheme.enabled ? : } ); }