2022-04-28 10:47:30 -07:00
|
|
|
import React from 'react';
|
|
|
|
|
2022-04-28 11:08:46 -07:00
|
|
|
import SidebarNavigation from 'soapbox/components/sidebar-navigation';
|
|
|
|
import { Layout } from 'soapbox/components/ui';
|
2022-04-28 10:47:30 -07:00
|
|
|
import BundleContainer from 'soapbox/features/ui/containers/bundle_container';
|
|
|
|
import {
|
|
|
|
AdminNav,
|
|
|
|
LatestAccountsPanel,
|
|
|
|
} from 'soapbox/features/ui/util/async-components';
|
|
|
|
|
|
|
|
import LinkFooter from '../features/ui/components/link_footer';
|
|
|
|
|
|
|
|
const AdminPage: React.FC = ({ children }) => {
|
|
|
|
return (
|
2022-04-28 11:08:46 -07:00
|
|
|
<Layout>
|
|
|
|
<Layout.Sidebar>
|
|
|
|
<SidebarNavigation />
|
|
|
|
</Layout.Sidebar>
|
|
|
|
|
|
|
|
<Layout.Main>
|
|
|
|
{children}
|
|
|
|
</Layout.Main>
|
|
|
|
|
|
|
|
<Layout.Aside>
|
|
|
|
<BundleContainer fetchComponent={AdminNav}>
|
|
|
|
{Component => <Component />}
|
|
|
|
</BundleContainer>
|
|
|
|
|
|
|
|
<BundleContainer fetchComponent={LatestAccountsPanel}>
|
|
|
|
{Component => <Component limit={5} />}
|
|
|
|
</BundleContainer>
|
|
|
|
|
|
|
|
<LinkFooter />
|
|
|
|
</Layout.Aside>
|
|
|
|
</Layout>
|
2022-04-28 10:47:30 -07:00
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default AdminPage;
|