interface UsePlayRichContentResult

Returned by usePlayRichContent to the cards that play a link.

Properties

playRichContent: (
dumpHref?: string
) => Promise<boolean>

Plays rc, its title in the player linking to the dump page dumpHref. Resolves to false when nothing could play, so the caller can open the link instead.

pending: boolean

True while a Bandcamp page is being resolved.

Usage

import { type UsePlayRichContentResult } from "src/hooks/player/usePlayRichContent.ts";