bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/breakout-room/message-form/container.jsx

24 lines
726 B
React
Raw Normal View History

import React from 'react';
import MessageForm from './component';
import BreakoutService from '/imports/ui/components/breakout-room/service';
import ChatService from '/imports/ui/components/chat/service';
const CHAT_CONFIG = Meteor.settings.public.chat;
const MessageFormContainer = (props) => {
const handleSendMessage = (message) => BreakoutService.sendMessageToAllBreakouts(message);
return (
<MessageForm
{...{
minMessageLength: CHAT_CONFIG.min_message_length,
maxMessageLength: CHAT_CONFIG.max_message_length,
UnsentMessagesCollection: ChatService.UnsentMessagesCollection,
handleSendMessage,
...props,
}}
/>
);
};
export default MessageFormContainer;