plane/web/components/core/sidebar/sidebar-menu-hamburger-toggle.tsx
2024-02-08 19:21:08 +05:30

17 lines
644 B
TypeScript

import { FC } from "react";
import { Menu } from "lucide-react";
import { useApplication } from "hooks/store";
import { observer } from "mobx-react";
export const SidebarHamburgerToggle: FC = observer(() => {
const { theme: themStore } = useApplication();
return (
<div
className="w-7 h-7 rounded flex justify-center items-center bg-neutral-component-surface-dark transition-all hover:bg-custom-background-90 cursor-pointer group md:hidden"
onClick={() => themStore.toggleSidebar()}
>
<Menu size={14} className="text-neutral-text-medium group-hover:text-neutral-text-strong transition-all" />
</div>
);
});