import { FC } from "react"; // components import { CyclesListItem } from "./cycles-list-item"; // 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 = (props) => { const { cycles, filter, workspaceSlug, projectId } = props; return (
{cycles ? ( <> {cycles.length > 0 ? (
{cycles.map((cycle) => (
))}
) : (

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

)} ) : ( )}
); };