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:19:26 +00:00
|
|
|
export const SidebarHamburgerToggle: FC = observer(() => {
|
2024-01-30 09:52:24 +00:00
|
|
|
const { theme: themStore } = useApplication();
|
|
|
|
return (
|
|
|
|
<div
|
|
|
|
className="w-7 h-7 rounded flex justify-center items-center bg-custom-background-80 transition-all hover:bg-custom-background-90 cursor-pointer group md:hidden"
|
|
|
|
onClick={() => themStore.toggleSidebar()}
|
|
|
|
>
|
|
|
|
<Menu size={14} className="text-custom-text-200 group-hover:text-custom-text-100 transition-all" />
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
});
|