import { IconButton, useColorMode } from "@chakra-ui/react"; import { FiMoon, FiSun } from "react-icons/fi"; const ColorModeSwitcher = ({ isMobile }: { isMobile?: boolean }) => { const { colorMode, toggleColorMode } = useColorMode(); return ( : } _hover={ colorMode === "dark" ? { bg: "white", color: "black" } : { bg: "black", color: "white" } } borderRadius={isMobile ? "50%" : "0"} size={isMobile ? "lg" : "sm"} height="50px" mx={2} display={isMobile ? "flex" : ["none", null, null, "flex"]} /> ); }; export default ColorModeSwitcher;