interface UseUpvotedListResult

Returned by useUpvotedList.

Properties

cardClassName: (dump: Dump) => string | undefined

It goes to DumpCardList's cardClassName.

isWithdrawn: (id: string) => boolean

Checks whether the vote on dump id was withdrawn since the list loaded. The profile's useDumpListSync keeps such a dump from coming back.

Usage

import { type UseUpvotedListResult } from "src/hooks/dump/useUpvotedList.ts";