2024-01-30 09:52:24 +00:00
|
|
|
import { FC } from "react";
|
|
|
|
import { Menu } from "lucide-react";
|
|
|
|
import { useApplication } from "hooks/store";
|
|
|
|
import { observer } from "mobx-react";
|
|
|
|
|
2024-02-08 12:53:13 +00:00
|
|
|
export const SidebarHamburgerToggle: FC = observer(() => {
|
2024-01-30 09:52:24 +00:00
|
|
|
const { theme: themStore } = useApplication();
|
|
|
|
return (
|
|
|
|
<div
|
2024-02-08 13:51:08 +00:00
|
|
|
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"
|
2024-01-30 09:52:24 +00:00
|
|
|
onClick={() => themStore.toggleSidebar()}
|
|
|
|
>
|
2024-02-08 12:53:13 +00:00
|
|
|
<Menu size={14} className="text-neutral-text-medium group-hover:text-neutral-text-strong transition-all" />
|
2024-01-30 09:52:24 +00:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
});
|