Const
<MessagesModal
isMessagesModalVisible={visible}
onMessagesClose={hide}
messages={messages}
eventType="conference"
member={userName}
islevel="1"
coHostResponsibility={responsibilities}
coHost={coHostName}
startDirectMessage={false}
directMessageDetails={null}
updateStartDirectMessage={setStartDm}
updateDirectMessageDetails={setDmDetails}
roomName={roomId}
socket={socket}
chatSetting="default"
/>
<MessagesModal
isMessagesModalVisible
onMessagesClose={close}
messages={messageHistory}
onSendMessagePress={sendCustomMessage}
eventType="webinar"
member="host_01"
islevel="2"
backgroundColor="#101826"
activeTabBackgroundColor="#3b82f6"
style={{ borderRadius: 24 }}
{...dmProps}
/>
MessagesModal centralizes broadcast and direct messaging in a responsive modal. It adapts to event context, offers tabs for chat segmentation, and coordinates direct-message flows with overrideable handlers and layouts.
Key Features
sendMessage
by default but accepts custom handlers.MessagePanel
to render messages with built-in tab management.Accessibility
MessagePanel
.