Default
Function: default()
function default(props): Element
Defined in: src/components/leaderboard/leaderboard-component.tsx:15
Leaderboard component that displays the leaderboard for a selected period.
Parameters
props
The properties passed to the component.
leaderboard
object[]
The leaderboard data to display.
theme?
"light" | "dark" | "radio" = 'light'
Optional theme for styling ('light' or 'dark').
Returns
Element
A JSX element that contains the leaderboard.