Renders the upvote button of a dump, on its card and on its page.

Functions

f
VoteButton(unnamed 0: VoteButtonProps): React.JSX.Element

Renders a dump's upvote button and its count. Clicking the count, when it isn't zero, opens the list of voters (GET /api/dumps/:id/voters) instead.

Interfaces

I
VoteButtonProps

Passed to VoteButton by DumpCard, JournalCard and the Dump page, with the state and the functions of WSContext.