2020-10-29 23:46:54 +00:00
|
|
|
import React from 'react'
|
|
|
|
import PropTypes from 'prop-types'
|
|
|
|
import PageTitle from '../features/ui/util/page_title'
|
|
|
|
import DefaultLayout from '../layouts/default_layout'
|
|
|
|
import {
|
|
|
|
LinkFooter,
|
2020-11-07 05:19:04 +00:00
|
|
|
TrendsBreakingPanel,
|
2020-10-29 23:46:54 +00:00
|
|
|
UserSuggestionsPanel,
|
|
|
|
} from '../features/ui/util/async_components'
|
|
|
|
|
|
|
|
class LinkPage extends React.PureComponent {
|
|
|
|
|
|
|
|
render() {
|
|
|
|
const {
|
|
|
|
children,
|
|
|
|
page,
|
|
|
|
title,
|
|
|
|
} = this.props
|
|
|
|
|
|
|
|
return (
|
|
|
|
<DefaultLayout
|
|
|
|
noComposeButton
|
|
|
|
showBackBtn
|
|
|
|
title={title}
|
|
|
|
page={page}
|
|
|
|
layout={[
|
2020-11-07 05:19:04 +00:00
|
|
|
TrendsBreakingPanel,
|
2020-10-29 23:46:54 +00:00
|
|
|
UserSuggestionsPanel,
|
|
|
|
LinkFooter,
|
|
|
|
]}
|
|
|
|
>
|
|
|
|
<PageTitle path={title} />
|
|
|
|
{children}
|
|
|
|
</DefaultLayout>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
LinkPage.propTypes = {
|
|
|
|
children: PropTypes.node.isRequired,
|
|
|
|
page: PropTypes.string.isRequired,
|
|
|
|
title: PropTypes.string.isRequired,
|
|
|
|
}
|
|
|
|
|
|
|
|
export default LinkPage
|