14 lines
273 B
JavaScript
14 lines
273 B
JavaScript
import Entity from './entity.jsx';
|
|
|
|
export default function Entities({entities}) {
|
|
const renderables = [];
|
|
for (const id in entities) {
|
|
renderables.push(
|
|
<Entity
|
|
entity={entities[id]}
|
|
key={id}
|
|
/>
|
|
);
|
|
}
|
|
return <>{renderables}</>;
|
|
} |