plane/web/components/cycles/list/cycles-list-map.tsx

28 lines
580 B
TypeScript
Raw Normal View History

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