import { useRouter } from "next/router"; import { observer } from "mobx-react-lite"; import { GanttChartSquare, LayoutGrid, List, Plus } from "lucide-react"; // mobx store import { useMobxStore } from "lib/mobx/store-provider"; // hooks import useLocalStorage from "hooks/use-local-storage"; // ui import { Breadcrumbs, Button, Tooltip, DiceIcon } from "@plane/ui"; // helper import { replaceUnderscoreIfSnakeCase } from "helpers/string.helper"; import { renderEmoji } from "helpers/emoji.helper"; const moduleViewOptions: { type: "list" | "grid" | "gantt_chart"; icon: any }[] = [ { type: "list", icon: List, }, { type: "grid", icon: LayoutGrid, }, { type: "gantt_chart", icon: GanttChartSquare, }, ]; export const ModulesListHeader: React.FC = observer(() => { // router const router = useRouter(); const { workspaceSlug } = router.query; // store const { project: projectStore } = useMobxStore(); const { currentProjectDetails } = projectStore; const { storedValue: modulesView, setValue: setModulesView } = useLocalStorage("modules_view", "grid"); return (