LokiLab's feed now carries US, French and EuroMillions results with a bonus array (Powerball, N° Chance, étoiles). Bonus balls render after a "+" in gold; the lottery strip gets icons for the new games. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
42 lines
1.1 KiB
TypeScript
42 lines
1.1 KiB
TypeScript
export function NumberSequence({
|
|
numbers,
|
|
bonus,
|
|
bonusLabel,
|
|
hitSet,
|
|
}: {
|
|
numbers: number[]
|
|
bonus?: number[]
|
|
bonusLabel?: string
|
|
hitSet?: Set<number>
|
|
}) {
|
|
return (
|
|
<div className="flex flex-wrap items-center gap-1">
|
|
{numbers.map((n, i) => (
|
|
<span
|
|
key={i}
|
|
className={
|
|
"flex h-7 w-7 shrink-0 items-center justify-center rounded-full text-[13px] font-semibold tabular-nums " +
|
|
(hitSet?.has(n) ? "bg-success text-success-foreground" : "bg-muted text-foreground")
|
|
}
|
|
>
|
|
{n}
|
|
</span>
|
|
))}
|
|
{bonus && bonus.length > 0 && (
|
|
<>
|
|
<span aria-hidden className="px-0.5 text-xs text-muted-foreground">+</span>
|
|
{bonus.map((n, i) => (
|
|
<span
|
|
key={`b${i}`}
|
|
title={bonusLabel}
|
|
className="flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-gold text-[13px] font-bold tabular-nums text-primary-foreground"
|
|
>
|
|
{n}
|
|
</span>
|
|
))}
|
|
</>
|
|
)}
|
|
</div>
|
|
)
|
|
}
|