import { FC } from "react"; import { observer } from "mobx-react"; import Image from "next/image"; import { useTheme } from "next-themes"; // 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(); // theme const { resolvedTheme } = useTheme(); const resolvedEmptyStatePath = `/empty-state/active-cycle/cycle-${resolvedTheme === "light" ? "light" : "dark"}.webp`; if (!currentProjectUpcomingCycleIds) return null; return (
Next cycles
{currentProjectUpcomingCycleIds.length > 0 ? (
{currentProjectUpcomingCycleIds.map((cycleId) => ( ))}
) : (
button image
No upcoming cycles

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

)}
); });