// Тот же лимит, что ChatService.MAX_MESSAGE_LENGTH на бэкенде const MAX_MESSAGE_LENGTH = 4000; export default function ChatInputBar({ input, onInputChange, onSend, connected, placeholder, }) { return (
onInputChange(e.target.value)} placeholder={placeholder} className="chat-input" maxLength={MAX_MESSAGE_LENGTH} />
); }