import { FC } from "react"; // ui import { Loader } from "@plane/ui"; // types import { ICycle } from "types"; import { CyclesListItem } from "./cycles-list-item"; export interface ICyclesList { cycles: ICycle[]; filter: string; } export const CyclesList: FC = (props) => { const { cycles, filter } = props; return (
{cycles ? ( <> {cycles.length > 0 ? (
{cycles.map((cycle) => (
))}
) : (

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

)} ) : ( )}
); };