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

22 lines
373 B
JavaScript
Raw Normal View History

2020-03-24 04:39:12 +00:00
import SettingsLayout from '../layouts/settings_layout'
2020-02-24 21:56:07 +00:00
export default class SettingsPage extends PureComponent {
2020-03-24 04:39:12 +00:00
static propTypes = {
tabs: PropTypes.array,
title: PropTypes.string,
}
2020-02-24 21:56:07 +00:00
render() {
2020-03-24 04:39:12 +00:00
const { children, title, tabs } = this.props;
2020-02-24 21:56:07 +00:00
return (
2020-03-24 04:39:12 +00:00
<SettingsLayout
title={title}
tabs={tabs}
>
2020-02-24 21:56:07 +00:00
{children}
2020-03-24 04:39:12 +00:00
</SettingsLayout>
2020-02-24 21:56:07 +00:00
)
}
}