2024-03-11 15:30:05 +00:00
|
|
|
// components
|
2024-03-19 14:38:35 +00:00
|
|
|
import { CyclesListItem } from "@/components/cycles";
|
2024-03-11 15:30:05 +00:00
|
|
|
|
|
|
|
type Props = {
|
|
|
|
cycleIds: string[];
|
|
|
|
projectId: string;
|
|
|
|
workspaceSlug: string;
|
2024-03-20 15:32:58 +00:00
|
|
|
isArchived?: boolean;
|
2024-03-11 15:30:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export const CyclesListMap: React.FC<Props> = (props) => {
|
2024-03-20 15:32:58 +00:00
|
|
|
const { cycleIds, projectId, workspaceSlug, isArchived } = props;
|
2024-03-11 15:30:05 +00:00
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
{cycleIds.map((cycleId) => (
|
2024-03-20 15:32:58 +00:00
|
|
|
<CyclesListItem
|
|
|
|
key={cycleId}
|
|
|
|
cycleId={cycleId}
|
|
|
|
workspaceSlug={workspaceSlug}
|
|
|
|
projectId={projectId}
|
|
|
|
isArchived={isArchived}
|
|
|
|
/>
|
2024-03-11 15:30:05 +00:00
|
|
|
))}
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|