Renders the form that creates a playlist, in NewPlaylistButton's modal and in PlaylistMembershipPanel, with the playlist categories to file it under.
f
PlaylistCreateForm(unnamed 0: PlaylistCreateFormProps): React.JSX.Element
Renders the form that creates a playlist with POST /api/playlists, then
adds dumpId to it when given. The playlist exists even if adding the dump
fails, so onCreated runs either way and says which.
I
PlaylistCreateFormProps
Passed to PlaylistCreateForm by NewPlaylistButton and PlaylistMembershipPanel.
- className: string
-
dumpId: string
Added to the new playlist, which the submit button says.
- onCancel: () => void
-
onCreated: () => voidplaylist: Playlist,hasDump: boolean
hasDumptells whetherdumpIdmade it into the new playlist.
Usage
import * as mod from "src/components/playlist/PlaylistCreateForm.tsx";