mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-05 03:01:11 +00:00
16 lines
461 B
JavaScript
16 lines
461 B
JavaScript
import React from 'react';
|
|
|
|
import DetailsCard from './details-card';
|
|
|
|
export default function Details({controlStatus, details, nodes}) {
|
|
// render all details as cards, later cards go on top
|
|
return (
|
|
<div className="details">
|
|
{details.toIndexedSeq().map((obj, index) => <DetailsCard key={obj.id}
|
|
index={index} cardCount={details.size} nodes={nodes}
|
|
nodeControlStatus={controlStatus[obj.id]} {...obj} />
|
|
)}
|
|
</div>
|
|
);
|
|
}
|