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';
|
2024-08-24 06:01:17 -07:00
|
|
|
import { LatestAccountsPanel } from 'soapbox/features/ui/util/async-components';
|
2022-04-28 10:47:30 -07:00
|
|
|
|
2022-11-16 05:32:32 -08:00
|
|
|
import LinkFooter from '../features/ui/components/link-footer';
|
2022-04-28 10:47:30 -07:00
|
|
|
|
2024-08-24 06:01:17 -07:00
|
|
|
interface IAdminLayout {
|
2023-10-02 11:54:02 -07:00
|
|
|
children: React.ReactNode;
|
2023-01-10 15:03:15 -08:00
|
|
|
}
|
|
|
|
|
2024-08-24 06:01:17 -07:00
|
|
|
const AdminLayout: React.FC<IAdminLayout> = ({ children }) => (
|
2024-05-12 16:18:04 -07:00
|
|
|
<>
|
|
|
|
<Layout.Main>
|
|
|
|
{children}
|
|
|
|
</Layout.Main>
|
2022-04-28 11:08:46 -07:00
|
|
|
|
2024-05-12 16:18:04 -07:00
|
|
|
<Layout.Aside>
|
|
|
|
<LatestAccountsPanel limit={5} />
|
|
|
|
<LinkFooter />
|
|
|
|
</Layout.Aside>
|
|
|
|
</>
|
|
|
|
);
|
2022-04-28 10:47:30 -07:00
|
|
|
|
2024-08-24 06:01:17 -07:00
|
|
|
export { AdminLayout as default };
|