diff --git a/src/components/Navbar/SearchButton.tsx b/src/components/Navbar/SearchButton.tsx index 2253ddf..4e254bd 100644 --- a/src/components/Navbar/SearchButton.tsx +++ b/src/components/Navbar/SearchButton.tsx @@ -1,3 +1,4 @@ +import { useContext } from "react" import { Link } from "react-router-dom" import ReactTooltip from "react-tooltip" @@ -6,7 +7,11 @@ import { faSearch } from "@fortawesome/free-solid-svg-icons" import { StyledLink } from "./Navbar" +import { globalContext } from "../../globalContext" + const SearchButton = () => { + const { globalState } = useContext(globalContext) + return ( <>
@@ -21,7 +26,7 @@ const SearchButton = () => {
- Search + {globalState.locale == "en" ? "Search" : "검색"} )