Show international lotteries with their bonus balls

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>
This commit is contained in:
Nazim Kri
2026-10-31 10:59:56 -04:00
co-authored by Claude Opus 5.5
parent 9996f7b823
commit 302915d888
6 changed files with 31 additions and 8 deletions
+19 -3
View File
@@ -1,8 +1,12 @@
export function NumberSequence({
numbers,
bonus,
bonusLabel,
hitSet,
}: {
numbers: number[]
bonus?: number[]
bonusLabel?: string
hitSet?: Set<number>
}) {
return (
@@ -12,14 +16,26 @@ export function NumberSequence({
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")
(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>
)
}