diff --git a/packages/client/src/components/jury-display.tsx b/packages/client/src/components/jury-display.tsx new file mode 100644 index 0000000..8b07f19 --- /dev/null +++ b/packages/client/src/components/jury-display.tsx @@ -0,0 +1,73 @@ +import type { JuryRound, JuryResult } from "@celebrate-esc/shared" + +interface JuryDisplayProps { + currentRound: JuryRound | null + results: JuryResult[] +} + +export function JuryDisplay({ currentRound, results }: JuryDisplayProps) { + if (currentRound) { + return ( +
Now voting
+{currentRound.countryName}
+Rate 1-12 on your phone
+Latest result
+ {lastResult.countryFlag} +{lastResult.countryName}
+{lastResult.averageRating}
+{lastResult.totalVotes} votes
++ And 12 points go to... +
++ {topRated.countryFlag} {topRated.countryName} +
++ {topRated.averageRating} avg +
+Rankings
+ {[...results] + .sort((a, b) => b.averageRating - a.averageRating) + .map((r, i) => ( +Live Event
+Waiting for host to open voting...
+