import { FC } from "react"; import { observer } from "mobx-react"; // components import { UpcomingCycleListItem } from "@/components/cycles"; // hooks import { useCycle } from "@/hooks/store"; type Props = { handleEmptyStateAction: () => void; }; export const UpcomingCyclesList: FC = observer((props) => { const { handleEmptyStateAction } = props; // store hooks const { currentProjectUpcomingCycleIds } = useCycle(); if (!currentProjectUpcomingCycleIds) return null; return (
Next cycles
{currentProjectUpcomingCycleIds.length > 0 ? (
{currentProjectUpcomingCycleIds.map((cycleId) => ( ))}
) : (
No upcoming cycles

Create new cycles to find them here or check
{"'"}All{"'"} cycles tab to see all cycles or{" "}

)}
); });