initial index
This commit is contained in:
parent
62cc828d6a
commit
88015a98cd
21 changed files with 343 additions and 56 deletions
22
app/components/index-world-container.tsx
Normal file
22
app/components/index-world-container.tsx
Normal file
|
@ -0,0 +1,22 @@
|
|||
import { useMemo } from "react";
|
||||
import type { Health, World } from "~/utils/saerro";
|
||||
import { IndexWorld } from "./index-world";
|
||||
import * as styles from "./index-world-container.css";
|
||||
|
||||
export const WorldContainer = ({
|
||||
worlds,
|
||||
health,
|
||||
}: {
|
||||
worlds: World[];
|
||||
health: Health;
|
||||
}) => (
|
||||
<div className={styles.container}>
|
||||
{worlds.map((world) => (
|
||||
<IndexWorld
|
||||
key={world.id}
|
||||
world={world}
|
||||
health={health.worlds.find((w) => world.name.toLowerCase() === w.name)}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue