import { FC } from "react"; import { observer } from "mobx-react-lite"; import { ChevronRight } from "lucide-react"; import { Disclosure } from "@headlessui/react"; // components import { CyclePeekOverview, CyclesBoardMap } from "@/components/cycles"; // helpers import { cn } from "@/helpers/common.helper"; export interface ICyclesBoard { completedCycleIds: string[]; cycleIds: string[]; workspaceSlug: string; projectId: string; peekCycle: string | undefined; } export const CyclesBoard: FC = observer((props) => { const { completedCycleIds, cycleIds, workspaceSlug, projectId, peekCycle } = props; return (
{cycleIds.length > 0 && ( )} {completedCycleIds.length !== 0 && ( {({ open }) => ( <> Completed cycles ({completedCycleIds.length}) )} )}
); });