import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" import { faGithub } from "@fortawesome/free-brands-svg-icons" import styled from "styled-components" import theme from "styled-theming" import ReactTooltip from "react-tooltip" import NavbarData from "../data/NavbarData" import theming from "../theming" import { Link } from "react-router-dom" import SearchBox from "./SearchBox" import Sidebar from "./Sidebar" import ThemeToggleButton from "./ThemeToggleButton" import { faLanguage } from "@fortawesome/free-solid-svg-icons" const StyledNav = styled.nav` display: flex; align-items: center; height: 2rem; margin: 0; padding: 1rem; background-color: ${theme("mode", { light: theming.light.backgroundColor0, dark: theming.dark.backgroundColor0, })}; color: ${theme("mode", { light: theming.light.color0, dark: theming.dark.color0, })}; box-shadow: 0 4px 10px rgb(0 0 0 / 5%); .right { margin-left: auto; } ` const StyledNavLinks = styled.div` @media only screen and (max-width: ${theming.size.screen_size1}) { display: none; } ` const StyledImg = styled.img` height: 2rem; margin: 1rem; ` const StyledLink = styled(Link)` ${theming.styles.navbarButtonStyle} ` const StyledALink = styled.a` ${theming.styles.navbarButtonStyle} ` function Navbar() { return ( {NavbarData.map((item, index) => { return ( {item.title} ) })} Change to Korean/English View source code ) } export default Navbar