import { Reveal } from "../ui/Reveal"; import { CountUp } from "../ui/CountUp"; type Props = { /** e.g. "1-6". Rendered as "1–6" with a real en dash. */ players: string; }; /** * The one number worth shouting. * * A player count buried in a fact sheet is a specification; at this size it is * an argument. Borrowed from the EmberWild site's co-op band — the page needs * one moment where the type does the talking instead of a paragraph. */ export function CoopBand({ players }: Props) { const [min, max] = players.split(/[-–]/); // "1-6" counts up to six; a non-numeric range ("2+", "TBA") is printed as // written rather than guessed at. const maxValue = Number(max); const countable = Number.isFinite(maxValue) && maxValue > Number(min); return (

{min} {max && ( <> {countable ? ( ) : ( {max} )} )}

Better together

Solo works. Six works better. One world, shared by all of you.

); }