import { observer } from "mobx-react"; import { CustomMenu } from "@plane/ui"; import { MODULE_VIEW_LAYOUTS } from "@/constants/module"; import { useModuleFilter, useProject } from "@/hooks/store"; const ModulesListMobileHeader = observer(() => { const { currentProjectDetails } = useProject(); const { updateDisplayFilters } = useModuleFilter(); return (
Layout} customButtonClassName="flex flex-grow justify-center items-center text-custom-text-200 text-sm" closeOnSelect > {MODULE_VIEW_LAYOUTS.map((layout) => { if (layout.key == "gantt") return; return ( { updateDisplayFilters(currentProjectDetails!.id.toString(), { layout: layout.key }); }} className="flex items-center gap-2" >
{layout.title}
); })}
); }); export default ModulesListMobileHeader;