import { FC } from "react"; // types import { ICycle } from "types"; // components import { CyclePeekOverview, CyclesBoardCard } from "components/cycles"; export interface ICyclesBoard { cycles: ICycle[]; filter: string; workspaceSlug: string; projectId: string; peekCycle: string; } export const CyclesBoard: FC = (props) => { const { cycles, filter, workspaceSlug, projectId, peekCycle } = props; return ( <> {cycles.length > 0 ? (
{cycles.map((cycle) => ( ))}
) : (

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

)} ); };