Renders the categories a dump or playlist is filed under, on its card and its page.
f
CategoryChips(unnamed 0: CategoryChipsProps): React.JSX.Element | null
Renders each category ids names as a chip linking to its page, a dump
category's feed or a playlist category's playlists, in the categories'
order. Ids of categories since deleted are skipped, and it renders nothing
when none is left.
I
CategoryChipsProps
Passed to CategoryChips by DumpCard and Dump for a dump, and by
PlaylistCard and PlaylistHeader for a playlist.
-
className: string
Added to the row's own class, for a card's grid to place it.
-
ids: string[]
The dump's or playlist's
categoryIds. -
kind: CategoryKind
Whether
idsname dump or playlist categories. -
onClick: (e: React.MouseEvent) => void
Called on a click in the row. A clickable card stops it there, or a chip's click would open the card too.
Usage
import * as mod from "src/components/category/CategoryChips.tsx";