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;
|
|
|
|
};
|
|
|
|
|
|
|
|
export const CyclesListMap: React.FC<Props> = (props) => {
|
2024-04-30 13:29:07 +00:00
|
|
|
const { cycleIds, projectId, workspaceSlug } = props;
|
2024-03-11 15:30:05 +00:00
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
{cycleIds.map((cycleId) => (
|
2024-04-30 13:29:07 +00:00
|
|
|
<CyclesListItem key={cycleId} cycleId={cycleId} workspaceSlug={workspaceSlug} projectId={projectId} />
|
2024-03-11 15:30:05 +00:00
|
|
|
))}
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|