2022-04-19 19:57:27 -07:00
|
|
|
import { AppProps } from 'next/app';
|
|
|
|
import ServerStatusProvider from '../../utils/server-status-context';
|
|
|
|
import AlertMessageProvider from '../../utils/alert-message-context';
|
2022-05-11 23:31:31 -07:00
|
|
|
import MainLayout from '../main-layout';
|
2022-04-19 19:57:27 -07:00
|
|
|
|
|
|
|
function AdminLayout({ Component, pageProps }: AppProps) {
|
|
|
|
return (
|
|
|
|
<ServerStatusProvider>
|
|
|
|
<AlertMessageProvider>
|
|
|
|
<MainLayout>
|
|
|
|
<Component {...pageProps} />
|
|
|
|
</MainLayout>
|
|
|
|
</AlertMessageProvider>
|
|
|
|
</ServerStatusProvider>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default AdminLayout;
|