ps2.live-old/app/components/index-world-container.tsx
2024-07-15 14:13:23 -04:00

24 lines
615 B
TypeScript

import { IndexWorld } from "./index-world";
import * as styles from "./index-world-container.css";
import type { MetagameWorld } from "../utils/metagame";
import type { PopulationWorld } from "../utils/population";
export const WorldContainer = ({
metagame,
population,
}: {
metagame: MetagameWorld[];
population: PopulationWorld[];
}) => (
<div className={styles.container}>
{metagame.map((world) => (
<IndexWorld
key={world.id}
metagame={world}
population={
population.find((p) => p.id === world.id) as PopulationWorld
}
/>
))}
</div>
);