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