daedalOS/pages/_app.tsx
2023-11-18 21:02:03 -08:00

30 lines
996 B
TypeScript

import { type AppProps } from "next/app";
import { ErrorBoundary } from "components/pages/ErrorBoundary";
import Metadata from "components/pages/Metadata";
import StyledApp from "components/pages/StyledApp";
import { FileSystemProvider } from "contexts/fileSystem";
import { MenuProvider } from "contexts/menu";
import { ProcessProvider } from "contexts/process";
import { SessionProvider } from "contexts/session";
import { ViewportProvider } from "contexts/viewport";
const App = ({ Component, pageProps }: AppProps): React.ReactElement => (
<ViewportProvider>
<ProcessProvider>
<FileSystemProvider>
<SessionProvider>
<ErrorBoundary>
<Metadata />
<StyledApp>
<MenuProvider>
<Component {...pageProps} />
</MenuProvider>
</StyledApp>
</ErrorBoundary>
</SessionProvider>
</FileSystemProvider>
</ProcessProvider>
</ViewportProvider>
);
export default App;