Renders the user's playlists as toggles of whether each holds a dump, in AddToPlaylistModal and in the last step of the dump form.
f
PlaylistMembershipPanel(unnamed 0: PlaylistMembershipPanelProps): React.JSX.Element
Renders the playlists as checkboxes, which the keyboard toggles too, and a button that opens PlaylistCreateForm to make one holding the dump.
I
PlaylistMembershipPanelProps
Passed to PlaylistMembershipPanel by AddToPlaylistModal and the dump form, which fetch the memberships and call the server on a toggle. The panel only shows them.
- dumpId: string
- loading: boolean
- memberships: PlaylistMembership[]
-
onPlaylistCreated: (membership: PlaylistMembership) => void
Called with a playlist created from the panel, which holds the dump.
- onToggle: (membership: PlaylistMembership) => void
Usage
import * as mod from "src/components/playlist/PlaylistMembershipPanel.tsx";