// ── An empty state with a heading and a sentence ────────────────────────── // // Core's `EmptyState` renders its CHILDREN and nothing else. This module passed // it `title` and `message` from phase 4 onwards — the shape the Integration Kit's // template teaches — and React drops an unknown prop without a word, so every // empty panel in the module rendered as a blank box: "Nobody is on", "No scores // yet", "No servers yet", all of them. Found by the presence fix's browser walk, // when the "12 players online" it depended on came out as nothing. // // Fixed here rather than in core: core's component is shared by every module, // and a module-side wrapper changes nothing anybody else renders. The client // suite (`test/uiKitProps.test.js`) refuses a titled EmptyState so the mistake // cannot come back. import { EmptyState } from '../core.js' export default function Empty({ title, message }) { return ( {title && ( {title} )} {message && {message}} ) }