import styled, { ThemeConsumer } from "styled-components" import { isMobile } from "react-device-detect" import ReactTooltip from "react-tooltip" import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" import { faMoon, faSun } from "@fortawesome/free-solid-svg-icons" import theming from "../styles/theming" const StyledThemeButton = styled.div` ${theming.styles.navbarButtonStyle} ${(props) => theming.theme(props.theme.currentTheme, { light: "", dark: "transform: scaleX(-1);", })}; ` const Navbar = () => { return ( {({ currentTheme, setTheme }) => ( <> setTheme(currentTheme === "dark" ? "light" : "dark")} > {currentTheme == "dark" && } {currentTheme == "light" && } {!isMobile && ( Using {currentTheme} theme )} )} ) } export default Navbar