import { FC } from "react"; import { observer } from "mobx-react-lite"; // mobx store import { useMobxStore } from "lib/mobx/store-provider"; // components import { CyclePeekOverview, CyclesListItem } from "components/cycles"; // ui import { Loader } from "@plane/ui"; // types import { ICycle } from "types"; export interface ICyclesList { cycles: ICycle[]; filter: string; workspaceSlug: string; projectId: string; } export const CyclesList: FC = observer((props) => { const { cycles, filter, workspaceSlug, projectId } = props; const { commandPalette: commandPaletteStore, trackEvent: { setTrackElement } } = useMobxStore(); return ( <> {cycles ? ( <> {cycles.length > 0 ? (
{cycles.map((cycle) => ( ))}
) : (

{filter === "all" ? "No cycles" : `No ${filter} cycles`}

)} ) : ( )} ); });