import { FC } from "react"; import { observer } from "mobx-react-lite"; import { Disclosure } from "@headlessui/react"; // components import { ListLayout } from "@/components/core/list"; import { ActiveCycleRoot, CycleListGroupHeader, CyclePeekOverview, CyclesListMap } from "@/components/cycles"; export interface ICyclesList { completedCycleIds: string[]; upcomingCycleIds?: string[] | undefined; cycleIds: string[]; workspaceSlug: string; projectId: string; isArchived?: boolean; } export const CyclesList: FC = observer((props) => { const { completedCycleIds, upcomingCycleIds, cycleIds, workspaceSlug, projectId, isArchived = false } = props; return (
{isArchived ? ( <> ) : ( <> {upcomingCycleIds && ( {({ open }) => ( <> )} )} {({ open }) => ( <> )} )}
); });