import "../styles/globals.css"; import "tailwindcss/tailwind.css"; import React, { useState } from "react"; import { GlobalSidebar } from "../components/layouts/global-sidebar"; import styles from "./_app.module.css"; import { ApolloProvider } from "@apollo/client"; import { useApollo } from "../commons/graphql/client"; import { ThemeProvider, useTheme } from "../commons/theme"; import { SwitchTheme } from "../components/switch-theme"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faCross, faHamburger, faTimes, } from "@fortawesome/free-solid-svg-icons"; import clsx from "clsx"; function MyApp({ Component, pageProps }) { const apolloClient = useApollo(pageProps); const [focusOpenSidebar, setFocusOpenSidebar] = useState(false); return (
setFocusOpenSidebar(false)} />

{"Ivan Li 的个人博客"}

); } export default MyApp;