import { catalogById } from '@bg/shared/lite'; import { useSession } from '../store/session'; /** Display name with admin overrides applied. */ export function gameName(id: string): string { return useSession.getState().catalog.find((c) => c.id === id)?.nameKo ?? catalogById(id)?.nameKo ?? '๊ฒ์'; } /** Admin notice for a game (docs/14-admin.md ยง4). */ export function GameNotice({ gameId }: { gameId: string }) { const notice = useSession((s) => s.catalog.find((c) => c.id === gameId)?.notice); if (!notice) return null; return (
๐ข {notice}
); }