/** * Copyright (c) 2023-present Plane Software, Inc. and contributors * SPDX-License-Identifier: AGPL-3.0-only * See the LICENSE file for details. */ import { observer } from "mobx-react"; import { LeftSidePaneOutline } from "@makeplane/propel/icons"; // hooks import { useAppTheme } from "@/hooks/store/use-app-theme"; import { IconButton } from "@plane/propel/icon-button"; export const AppSidebarToggleButton = observer(function AppSidebarToggleButton() { // store hooks const { toggleSidebar, sidebarPeek, toggleSidebarPeek } = useAppTheme(); return ( { if (sidebarPeek) toggleSidebarPeek(false); toggleSidebar(); }} /> ); });