Renders the upvote button of a dump, on its card and on its page.
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.
GET /api/dumps/:id/voters
Passed to VoteButton by DumpCard, JournalCard and the Dump page, with the state and the functions of WSContext.
DumpCard
JournalCard
Dump
WSContext
The socket's live count if it has one, else the dump's voteCount.
voteCount
Set for a visitor, whom the tooltip asks to log in.
Called with count, which WSContext needs until it has a live count.
count
Called with count, as onCast is.
onCast
import * as mod from "src/components/social/VoteButton.tsx";