Files
joke-app/apps/web/src/pages/GamesPage.tsx
EJClaw 9bfb30a5e7 Merge branch 'm8/mafia' into codex/owner/grp_discord_joke-app
# Conflicts:
#	apps/server/src/rooms/room.ts
#	apps/web/src/games/registry.ts
#	apps/web/src/lib/catalog-ui.ts
#	e2e/games.e2e.ts
#	packages/engine/src/types.ts
#	packages/games/src/index.ts
#	packages/shared/src/catalog.ts
2026-10-06 00:39:35 +09:00

21 lines
642 B
TypeScript

import { CATALOG } from '@bg/shared/lite';
import { GameGrid } from '../components/GameGrid';
import { UPCOMING } from '../lib/catalog-ui';
import { useSession } from '../store/session';
export default function GamesPage() {
const catalog = useSession((s) => (s.catalog.length ? s.catalog : CATALOG));
return (
<main className="page">
<h1>게임 목록</h1>
<GameGrid games={catalog.filter((g) => g.available)} />
{UPCOMING.length > 0 && (
<section className="stack">
<h2>곧 나와요</h2>
<p className="muted">{UPCOMING.join(' · ')}</p>
</section>
)}
</main>
);
}