/* eslint-disable @next/next/no-img-element */ import type { NextPage } from "next"; import Link from "next/link"; import { Terminal, Sun, Moon } from "phosphor-react"; import styles from "../../styles/Blog/Navigation.module.scss"; const Navigation: NextPage<{}> = () => { const switchTheme = () => { if (typeof document === "undefined") return; const current = document.documentElement.getAttribute("data-theme") || "dark"; const setTo = current === "dark" ? "light" : "dark"; document.documentElement.setAttribute("data-theme", setTo); if (typeof window !== "undefined") window.localStorage.setItem("theme", setTo); }; return ; }; export default Navigation;