Renders the title field of the dump creation modal, read-only until the poster chooses to edit it.

Functions

f
TitleField(unnamed 0: TitleFieldProps): React.JSX.Element

Renders the title of a link or file dump. The suggested title, from the link's preview or the file's name, stays read-only until the ✎ button is pressed, so stray typing can't change it.

Interfaces

I
TitleFieldProps

Passed to TitleField by DumpCreateModal, which owns the editing state: it marks the title as the poster's own on onEdit.

Usage

import * as mod from "src/components/dump/create/TitleField.tsx";