interface PlaylistCardProps

Passed to PlaylistCard by each list of playlists.

Properties

optional
onDelete: () => void

Shows a delete button, which calls it. The owner's playlists pages pass one that asks for confirmation first.

optional
isOwner: boolean

Hides the owner link and the unread dot.

optional
privateBadgeOnly: boolean

Used by dump pages to display "In collections" lists. Prevents the visibility badge from showing, except to the owner of a private playlist: public badges on every card there would say nothing.

optional
grid: boolean

Set for a tile of the playlists page's grid, whose cover is larger.

Usage

import { type PlaylistCardProps } from "src/components/playlist/PlaylistCard.tsx";