From 4cae14b9f86609b8c1f74d97a033e7091af49cb4 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Mon, 13 Dec 2021 12:06:06 +0100 Subject: chore: change app to use a layout I can now insert header/footer on each pages. --- src/ts/types/app.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/ts/types/app.ts (limited to 'src/ts/types') diff --git a/src/ts/types/app.ts b/src/ts/types/app.ts new file mode 100644 index 0000000..b663812 --- /dev/null +++ b/src/ts/types/app.ts @@ -0,0 +1,11 @@ +import { NextPage } from 'next'; +import { AppProps } from 'next/app'; +import { ReactElement, ReactNode } from 'react'; + +export type NextPageWithLayout = NextPage & { + getLayout?: (page: ReactElement) => ReactNode; +}; + +export type AppPropsWithLayout = AppProps & { + Component: NextPageWithLayout; +}; -- cgit v1.2.3