bigbuffet-rw/app/soapbox/pages/admin_page.js

50 lines
1.5 KiB
JavaScript
Raw Normal View History

2020-12-30 06:43:24 -08:00
import React from 'react';
import ImmutablePureComponent from 'react-immutable-pure-component';
import LinkFooter from '../features/ui/components/link_footer';
2021-09-18 17:34:45 -07:00
import BundleContainer from 'soapbox/features/ui/containers/bundle_container';
import {
AdminNav,
LatestAccountsPanel,
} from 'soapbox/features/ui/util/async-components';
2020-12-30 06:43:24 -08:00
export default
class AdminPage extends ImmutablePureComponent {
render() {
const { children } = this.props;
return (
<div className='page page--admin'>
<div className='page__columns'>
<div className='columns-area__panels'>
<div className='columns-area__panels__pane columns-area__panels__pane--left'>
<div className='columns-area__panels__pane__inner'>
2021-09-18 17:34:45 -07:00
<BundleContainer fetchComponent={AdminNav}>
{Component => <Component />}
</BundleContainer>
2020-12-30 06:43:24 -08:00
</div>
</div>
<div className='columns-area__panels__main'>
<div className='columns-area'>
2020-12-30 06:43:24 -08:00
{children}
</div>
</div>
<div className='columns-area__panels__pane columns-area__panels__pane--right'>
<div className='columns-area__panels__pane__inner'>
2021-09-18 17:34:45 -07:00
<BundleContainer fetchComponent={LatestAccountsPanel}>
{Component => <Component limit={5} />}
</BundleContainer>
2020-12-30 06:43:24 -08:00
<LinkFooter />
</div>
</div>
</div>
</div>
</div>
);
}
}