import { FC, useEffect } from "react"; import { observer } from "mobx-react-lite"; // components import { WorkspaceHelpSection, WorkspaceSidebarDropdown, WorkspaceSidebarMenu, WorkspaceSidebarQuickAction, } from "components/workspace"; import { ProjectSidebarList } from "components/project"; // mobx store import { useMobxStore } from "lib/mobx/store-provider"; import { Menu } from "lucide-react"; import router from "next/router"; export interface IAppSidebar {} export const AppSidebar: FC = observer(() => { // store const { theme: themStore } = useMobxStore(); useEffect(() => { router.events.on("routeChangeStart", () => { themStore.setShowSidebarOnMobile(false); }); return () => { router.events.off("routeChangeStart", () => { themStore.setShowSidebarOnMobile(false); }); }; }, []); return (
); });