interface ChatEditBoxProps

Passed to ChatEditBox by ChatMessageItem while it is editing.

Properties

initial: string
onSave: (body: string) => void

Receives the trimmed text, only when it changed and can be sent.

onClose: () => void

Called once the text is saved, or left, Escape included.

Usage

import { type ChatEditBoxProps } from "src/components/chat/ChatEditBox.tsx";