import React, { useEffect, useState } from "react" import MoonIcon from "@geist-ui/icons/moon" import SunIcon from "@geist-ui/icons/sun" import styles from "./header.module.css" import { Select } from "@geist-ui/core/dist" import { useTheme } from "@components/theme/ThemeClientContextProvider" const Controls = () => { const { theme, setTheme } = useTheme() const switchThemes = () => { if (theme === "dark") { setTheme("light") } else { setTheme("dark") } } return (
) } export default React.memo(Controls)