plane/apps/app/pages/_app.tsx
2023-02-06 15:18:57 +05:30

24 lines
605 B
TypeScript

// styles
import "styles/globals.css";
import "styles/editor.css";
// contexts
import { UserProvider } from "contexts/user.context";
import { ToastContextProvider } from "contexts/toast.context";
import { ThemeContextProvider } from "contexts/theme.context";
// types
import type { AppProps } from "next/app";
function MyApp({ Component, pageProps }: AppProps) {
return (
<UserProvider>
<ToastContextProvider>
<ThemeContextProvider>
<Component {...pageProps} />
</ThemeContextProvider>
</ToastContextProvider>
</UserProvider>
);
}
export default MyApp;