interface JournalCardProps

Passed to JournalCard by JournalFeed, with the vote state Index takes from WSContext, as for DumpCard.

Properties

From composeJournal. It sets the tile's grid span, not its look.

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
isOwner: boolean

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

Usage

import { type JournalCardProps } from "src/components/dump/JournalCard.tsx";