import { FC } from "react"; import { observer } from "mobx-react-lite"; // hooks import { useApplication } from "hooks/store"; // components import { CyclePeekOverview, CyclesBoardCard } from "components/cycles"; export interface ICyclesBoard { cycleIds: string[]; filter: string; workspaceSlug: string; projectId: string; peekCycle: string | undefined; } export const CyclesBoard: FC = observer((props) => { const { cycleIds, filter, workspaceSlug, projectId, peekCycle } = props; // store hooks const { commandPalette: commandPaletteStore } = useApplication(); return ( <> {cycleIds?.length > 0 ? (
{cycleIds.map((cycleId) => ( ))}
) : (

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

)} ); });