Renders the button that creates a playlist in a modal, on the user's own profile and playlists pages.
Renders a button that opens PlaylistCreateForm in a modal, which closes once the playlist is created.
Passed to NewPlaylistButton by the user's profile and playlists pages, which add the new playlist to their list through onCreated.
onCreated
"+ New playlist" by default.
import * as mod from "src/components/playlist/NewPlaylistButton.tsx";