interface DumpCardProps

Passed to DumpCard by each list of dumps. The vote state comes from the parent, usually WSContext's passed down through the feed's props.

Properties

voteCount: number

The socket's live count if it has one, else dump.voteCount.

voted: boolean
canVote: boolean
castVote: (
id: string,
shownCount?: number
) => void
removeVote: (
id: string,
shownCount?: number
) => void
optional
className: string
optional
isOwner: boolean

Hides the unread dot and shows the "private" badge.

Usage

import { type DumpCardProps } from "src/components/dump/DumpCard.tsx";