gab-social/app/javascript/gabsocial/pages/link_page.js
mgabdev f129d9c49b Added LinkTimeline and PreviewCard fetching by id
• Added:
- LinkTimeline and PreviewCard fetching by id
2020-10-29 18:46:54 -05:00

46 lines
899 B
JavaScript

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,
TrendsPanel,
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={[
TrendsPanel,
UserSuggestionsPanel,
LinkFooter,
]}
>
<PageTitle path={title} />
{children}
</DefaultLayout>
)
}
}
LinkPage.propTypes = {
children: PropTypes.node.isRequired,
page: PropTypes.string.isRequired,
title: PropTypes.string.isRequired,
}
export default LinkPage