// RĂ´le : route vers les pages de jeux disponibles et leurs sous-pages. import { GamesPage } from "./GamesPage.jsx"; import { Diablo4Page } from "./diablo4/Diablo4Page.jsx"; import { MhwildsPage } from "./mhwilds/MhwildsPage.jsx"; export function GameRoute(props) { const { gameId, games } = props; const game = games.find((item) => item.id === gameId); const heroStyle = game?.images?.heroBg ? { "--game-hero-image": `url("${game.images.heroBg}")` } : undefined; if (!game) return ; if (game.id === "diablo4") return ; if (game.id === "mhwilds") return ; return ( <> {game.eyebrow || "Guide de jeu"} {game.title} {game.summary} {game.sections.map((section) => ( {section.title} {section.items.map((item) => {item})} ))} > ); }
{game.eyebrow || "Guide de jeu"}
{game.summary}