gab-social/app/javascript/gabsocial/pages/messages_page.js

37 lines
704 B
JavaScript
Raw Normal View History

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() {
const {
children,
isSettings,
source,
} = this.props
2020-11-15 18:48:32 +00:00
return (
<MessagesLayout
showBackBtn
isSettings={isSettings}
title='Chats'
source={source}
2020-11-15 18:48:32 +00:00
>
<PageTitle path='Chats' />
{children}
2020-11-15 18:48:32 +00:00
</MessagesLayout>
)
}
}
MessagesPage.propTypes = {
children: PropTypes.node.isRequired,
isSettings: PropTypes.func,
source: PropTypes.string,
2020-11-15 18:48:32 +00:00
}
export default MessagesPage