Tells the poster, in the dump creation modal, that the link they typed was already dumped.
f
DuplicateNotice(unnamed 0: DuplicateNoticeProps): React.JSX.Element
Renders the "already dumped" hint. It doesn't block posting, since a repost is sometimes on purpose.
I
DuplicateNoticeProps
Passed to DuplicateNotice by DumpCreateModal, with the matches of
GET /api/dumps?url=.
-
matches: DumpUrlMatch[]
Non-empty, latest first: the notice links the first one.
-
onNavigate: () => void
Closes the modal when the poster follows the link.
Usage
import * as mod from "src/components/dump/create/DuplicateNotice.tsx";