Shows a link's preview, as scraped by the server, in a card or on a dump's page, and plays it in the global player when it can.
f
RichContentCard(unnamed 0: RichContentCardProps): React.JSX.Element
Renders a link's preview. Its thumbnail plays the media in the global player when it can be played, and otherwise opens the link in a new tab. Full size, it also shows the site, title and description, linking out.
I
RichContentCardProps
Passed to RichContentCard by DumpCard (compact), Dump,
DumpEdit and DumpCreateModal, the last two without a dump to play from.
-
compact: boolean
Shows a card's thumbnail alone, as a play button or a link out.
-
dumpHref: string
The dump's page, which the global player's title links to.
- richContent: RichContent
-
thumbnailOverrideUrl: string
The dump's uploaded thumbnail, shown instead of the provider's and used as the player's artwork.
Usage
import * as mod from "src/components/dump/RichContentCard.tsx";