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