sokko-g/website/src/features/games/mhwilds/MhwildsLists.jsx
Shinuwa b221257616
All checks were successful
Deploy Sokko G / deploy (push) Successful in 15s
Improve toolbox architecture and initial bundle loading
2026-08-14 09:13:53 +02:00

20 lines
723 B
JavaScript

// Rôle : affiche les listes Monster Hunter Wilds exportables en checklist.
import { useState } from "react";
import { GameListsPage } from "../GameListsPage.jsx";
export function MhwildsLists({ game, mhwilds, linkedToolboxId, actions }) {
const lists = mhwilds.lists || [];
const [selectedListId, setSelectedListId] = useState("");
const selectedList = lists.find((list) => list.id === selectedListId) || lists[0] || null;
return (
<GameListsPage
game={game}
lists={lists}
selectedListId={selectedList?.id || ""}
onSelectList={setSelectedListId}
linkedToolboxId={linkedToolboxId}
onCreateChecklist={(list) => actions.createChecklistFromList(game.id, list)}
/>
);
}