2020-11-15 18:48:32 +00:00
|
|
|
import React from 'react'
|
|
|
|
import PropTypes from 'prop-types'
|
|
|
|
import PageTitle from '../features/ui/util/page_title'
|
|
|
|
import MessagesLayout from '../layouts/messages_layout'
|
|
|
|
|
|
|
|
class MessagesPage extends React.PureComponent {
|
|
|
|
|
|
|
|
render() {
|
2020-12-03 04:22:51 +00:00
|
|
|
const {
|
|
|
|
children,
|
|
|
|
isSettings,
|
|
|
|
source,
|
|
|
|
} = this.props
|
2020-11-15 18:48:32 +00:00
|
|
|
|
|
|
|
return (
|
|
|
|
<MessagesLayout
|
|
|
|
showBackBtn
|
2020-12-03 04:22:51 +00:00
|
|
|
isSettings={isSettings}
|
|
|
|
title='Chats'
|
|
|
|
source={source}
|
2020-11-15 18:48:32 +00:00
|
|
|
>
|
2020-12-03 04:22:51 +00:00
|
|
|
<PageTitle path='Chats' />
|
|
|
|
{children}
|
2020-11-15 18:48:32 +00:00
|
|
|
</MessagesLayout>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
MessagesPage.propTypes = {
|
|
|
|
children: PropTypes.node.isRequired,
|
2020-12-03 04:22:51 +00:00
|
|
|
isSettings: PropTypes.func,
|
|
|
|
source: PropTypes.string,
|
2020-11-15 18:48:32 +00:00
|
|
|
}
|
|
|
|
|
2020-12-03 04:22:51 +00:00
|
|
|
export default MessagesPage
|