diff --git a/components/switch-theme.js b/components/switch-theme.js new file mode 100644 index 0000000..c806b6c --- /dev/null +++ b/components/switch-theme.js @@ -0,0 +1,24 @@ +import PropTypes from 'prop-types' +import WbSunnyIcon from '@material-ui/icons/WbSunny' +import Brightness3Icon from '@material-ui/icons/Brightness3' + +export default function SwitchTheme({darkMode, setDarkMode}) { + const handleClick = () => { + setDarkMode(!darkMode) + } + + return ( +