import * as React from 'react'; import {PaletteMode} from '@mui/material'; import IconButton, {IconButtonProps} from '@mui/material/IconButton'; import WbSunnyRoundedIcon from '@mui/icons-material/WbSunnyRounded'; import ModeNightRoundedIcon from '@mui/icons-material/ModeNightRounded'; interface ToggleColorModeProps extends IconButtonProps { mode: PaletteMode; toggleColorMode: () => void; } export default function ToggleColorMode({ mode, toggleColorMode, ...props }: ToggleColorModeProps) { return ( {mode === 'dark' ? ( ) : ( )} ); }