function VoteButton
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.

Parameters

Return Type

React.JSX.Element

Usage

import { VoteButton } from "src/components/social/VoteButton.tsx";