2021-01-12 13:24:55 +00:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
import { Dialog } from '../../../base/dialog';
|
|
|
|
|
|
|
|
import Header from './ChatDialogHeader';
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Children of the component.
|
|
|
|
*/
|
|
|
|
children: React$Node
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Component that renders the content of the chat in a modal.
|
|
|
|
*
|
|
|
|
* @returns {React$Element<any>}
|
|
|
|
*/
|
|
|
|
function ChatDialog({ children }: Props) {
|
|
|
|
return (
|
|
|
|
<Dialog
|
|
|
|
customHeader = { Header }
|
|
|
|
disableEnter = { true }
|
2021-02-23 07:39:20 +00:00
|
|
|
disableFooter = { true }
|
2021-01-12 13:24:55 +00:00
|
|
|
hideCancelButton = { true }
|
|
|
|
submitDisabled = { true }
|
|
|
|
titleKey = 'chat.title'>
|
|
|
|
<div className = 'chat-dialog'>
|
|
|
|
{children}
|
|
|
|
</div>
|
|
|
|
</Dialog>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default ChatDialog;
|