@@ -22,7 +22,6 @@ function ActiveLink({ children, href, className, currentPath }) {
2222
2323export default function Header(props) {
2424 const [isOpen, setTray] = useState(false);
25− const [shortcut, setShortcut] = useState("");
2625
2726 const currentPath = useRouter().asPath;
2827
@@ -30,21 +29,6 @@ export default function Header(props) {
3029
3130 const firstCrumb = currentPath.split("/")[1];
3231
33− const detectOS = () => {
34− const agent = window.navigator.appVersion;
35− if (agent.includes("Win")) {
36− return "Ctrl+K";
37− } else if (agent.includes("Mac")) {
38− return "⌘K";
39− } else if (agent.includes("Linux")) {
40− return "Ctrl+K";
41− }
42− };
43−
44− useEffect(() => {
45− setShortcut(detectOS());
46− }, []);
47−
4832 return (
4933 <header className="layout px-4 md:px-8 flex justify-between items-center pt-8 md:pt-10 lg:pt-12 pb-10 md:pb-12 lg:pb-24">
5034 <div>
@@ -105,16 +89,6 @@ export default function Header(props) {
10589 >
10690 FAQ
10791 </ActiveLink>
108− <button
109− onClick={(e) => {
110− e.stopPropagation();
111− props.search.toggleSearch(e);
112− }}
113− className="bg-wall-100 text-wall-500 flex px-4 py-1 rounded-lg type-ui"
114− >
115− <div>Search</div>
116− <div className="ml-4 text-wall-400">{shortcut}</div>
117− </button>
11892 </nav>
11993
12094 {