import { FC } from "react"; import { observer } from "mobx-react"; import { Menu } from "lucide-react"; import { useApplication } from "hooks/store"; type Props = { onClick?: () => void; }; export const SidebarHamburgerToggle: FC = observer((props) => { const { onClick } = props; const { theme: themeStore } = useApplication(); return (
{ if (onClick) onClick(); else themeStore.toggleSidebar(); }} >
); });