"use client"; import { useState } from "react"; import type { ModdedGame } from "@/data/content"; import ModList from "@/components/ModList"; import "../styles/mods.css"; type Props = { game: ModdedGame; visible?: boolean; /** Collapsed by default on the smaller layout, where the full list is a long scroll. */ defaultOpen?: boolean; }; /** One game and everything built for it: header, then the game's mod list. */ export default function ModGameSection({ game, visible = true, defaultOpen = true }: Props) { const [open, setOpen] = useState(defaultOpen); const [hovered, setHovered] = useState(false); const count = game.mods.length; return (
{game.description &&

{game.description}

} {open && }
); }