diff --git a/apps/web/components/layout.tsx b/apps/web/components/layout.tsx new file mode 100644 index 000000000..f01410c4c --- /dev/null +++ b/apps/web/components/layout.tsx @@ -0,0 +1,15 @@ +import React, { ReactNode } from "react"; + +interface Props { + children?: any; +} + +export default function Layout({ children }: Props) { + return ( + <> +
= NextPage
& {
+ getLayout?: (page: ReactElement) => ReactNode;
+};
+
+type AppPropsWithLayout = AppProps & {
+ Component: NextPageWithLayout;
+};
+
+export default function App({ Component, pageProps }: AppPropsWithLayout) {
+ const getLayout = Component.getLayout || ((page: any) => page);
+ return getLayout(
hello world
; +}; -export default function Home() { - return ( -
- Get started by editing{" "}
- pages/index.tsx
-
Find in-depth information about Next.js features and API.
- - - -Learn about Next.js in an interactive course with quizzes!
- - - -Discover and deploy boilerplate example Next.js projects.
- - - -- Instantly deploy your Next.js site to a public URL with Vercel. -
- -