Renders the modal that posts a dump from a link or a file, then offers to add it to the poster's playlists. Every "new dump" button opens it.
Renders the dump creation modal. The first panel takes a link, previewed
through GET /api/remote/preview and checked against
GET /api/dumps?url=, or a file. The second takes the "why", categories
and visibility, and posts to POST /api/dumps. The third adds the new dump
to playlists. The new dump is handed to WSContext's injectDump so the
feeds show it at once. Everything but the file is saved as a draft
(utils/dump/draft.ts) until it is posted.
Passed to DumpCreateModal by the button that opens it. The parent
unmounts the modal on onClose, which the modal also calls after a
confirmed dismissal.
-
initialUrl: string
A link shared from Android's share sheet, which
AppHeaderpasses on fromIndex. It replaces any saved draft. - onClose: () => void
Usage
import * as mod from "src/components/dump/create/DumpCreateModal.tsx";