import { FC } from "react"; import { observer } from "mobx-react-lite"; import Image from "next/image"; // components import { CyclesList } from "@/components/cycles"; // ui import { CycleModuleListLayout } from "@/components/ui"; // hooks import { useCycle, useCycleFilter } from "@/hooks/store"; // assets import AllFiltersImage from "@/public/empty-state/cycle/all-filters.svg"; import NameFilterImage from "@/public/empty-state/cycle/name-filter.svg"; export interface IArchivedCyclesView { workspaceSlug: string; projectId: string; } export const ArchivedCyclesView: FC = observer((props) => { const { workspaceSlug, projectId } = props; // store hooks const { getFilteredArchivedCycleIds, loader } = useCycle(); const { archivedCyclesSearchQuery } = useCycleFilter(); // derived values const filteredArchivedCycleIds = getFilteredArchivedCycleIds(projectId); if (loader || !filteredArchivedCycleIds) return ; if (filteredArchivedCycleIds.length === 0) return (
No matching cycles
No matching cycles

{archivedCyclesSearchQuery.trim() === "" ? "Remove the filters to see all cycles" : "Remove the search criteria to see all cycles"}

); return ( ); });