bigbuffet-rw/app/soapbox/pages/admin-page.tsx

34 lines
747 B
TypeScript
Raw Normal View History

2022-04-28 10:47:30 -07:00
import React from 'react';
2022-04-28 11:08:46 -07:00
import { Layout } from 'soapbox/components/ui';
2022-11-16 05:32:32 -08:00
import BundleContainer from 'soapbox/features/ui/containers/bundle-container';
2022-04-28 10:47:30 -07:00
import {
LatestAccountsPanel,
} from 'soapbox/features/ui/util/async-components';
2022-11-16 05:32:32 -08:00
import LinkFooter from '../features/ui/components/link-footer';
2022-04-28 10:47:30 -07:00
2023-01-10 15:03:15 -08:00
interface IAdminPage {
children: React.ReactNode
}
const AdminPage: React.FC<IAdminPage> = ({ children }) => {
2022-04-28 10:47:30 -07:00
return (
<>
2022-04-28 11:08:46 -07:00
<Layout.Main>
{children}
</Layout.Main>
<Layout.Aside>
<BundleContainer fetchComponent={LatestAccountsPanel}>
{Component => <Component limit={5} />}
</BundleContainer>
<LinkFooter />
</Layout.Aside>
</>
2022-04-28 10:47:30 -07:00
);
};
export default AdminPage;