silphius/app/react-components/entities.jsx
2024-06-27 02:57:28 -05:00

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}</>;
}