Lets the user add a dump to their playlists or take it out, in AddToPlaylistModal and the dump form's last step. It loads which of their playlists hold the dump.

Functions

f
usePlaylistMemberships(dumpId: string | null): UsePlaylistMembershipsResult

Returns the user's playlists with whether each holds dumpId, from GET /api/me/playlists?contains=:dumpId. A null dumpId, as before DumpCreateModal has posted its dump, loads nothing.

Interfaces

I
UsePlaylistMembershipsResult

Returned by usePlaylistMemberships to AddToPlaylistModal and DumpCreateModal, for their PlaylistMembershipPanel.