Renders the line above a chat message, sent or pending, that quotes the message it replies to.
f
ReplyRef(unnamed 0: ReplyRefProps): React.JSX.Element
Renders the replied-to message's author and a one-line snippet of its text, as a button that scrolls to it. When it was deleted, the button is disabled and says so.
I
ReplyRefProps
Passed to ReplyRef by ChatMessageItem, from the message's
replyTo* fields, and by PendingItem, from its replyTo.
-
author: string
Undefined when the replied-to message was deleted.
-
body: string
Possibly cut short by the server, as
replyToBodyis. - onJumpTo: (id: string) => void
- replyToId: string
Usage
import * as mod from "src/components/chat/ReplyRef.tsx";