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