2020-08-17 21:07:16 +01:00
|
|
|
import React from 'react'
|
2020-08-17 21:59:29 +01:00
|
|
|
import PropTypes from 'prop-types'
|
2020-07-02 03:39:43 +01:00
|
|
|
import PageTitle from '../features/ui/util/page_title'
|
2020-08-06 06:13:19 +01:00
|
|
|
import ExploreLayout from '../layouts/explore_layout'
|
2020-07-02 03:39:43 +01:00
|
|
|
|
2020-08-17 21:07:16 +01:00
|
|
|
class ExplorePage extends React.PureComponent {
|
2020-07-02 03:39:43 +01:00
|
|
|
|
|
|
|
render() {
|
|
|
|
const { children, title } = this.props
|
|
|
|
|
|
|
|
return (
|
2020-08-14 18:45:59 +01:00
|
|
|
<ExploreLayout title={title}>
|
2020-07-02 03:39:43 +01:00
|
|
|
<PageTitle path={title} />
|
|
|
|
{children}
|
2020-08-06 06:13:19 +01:00
|
|
|
</ExploreLayout>
|
2020-07-02 03:39:43 +01:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2020-08-14 18:45:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
ExplorePage.propTypes = {
|
|
|
|
title: PropTypes.string.isRequired,
|
|
|
|
children: PropTypes.node.isRequired,
|
|
|
|
}
|
|
|
|
|
|
|
|
export default ExplorePage
|