import "../styles/globals.css"; import "tailwindcss/tailwind.css"; import React from "react"; import { GlobalSidebar } from "../components/layouts/global-sidebar"; import styles from "./_app.module.css"; import { ApolloProvider } from "@apollo/client"; import { client } from "../commons/graphql/client"; function MyApp({ Component, pageProps }) { return (

{"Ivan Li 的个人博客"}

); } function switchTheme(mode: "light" | "dark" | "auto") { if (mode === "auto") { mode = "light"; } if (mode === "dark") { document.documentElement.classList.add("dark"); } else { document.documentElement.classList.remove("dark"); } } export default MyApp;