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

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

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