Default
Function: default()
function default(props): Element
Defined in: src/components/leaderboard/leaderboard-item-component.tsx:18
LeaderboardItem component that displays a single item in the leaderboard. It shows the committee name, score as a percentage of the maximum score, and the total points scored by the committee.
Parameters
props
The properties passed to the component.
className?
string = ''
Optional additional class names for styling.
leaderboardItem
{ committee
: string
; points
: number
; }
The leaderboard item data to display.
leaderboardItem.committee
string = ...
leaderboardItem.points
number = ...
maxScore
number
The maximum score used to calculate the percentage.
theme?
"light" | "dark" = 'light'
Optional theme for styling ('light' or 'dark').
Returns
Element
A JSX element that represents a single leaderboard item.