diff options
| author | Armand Philippot <git@armandphilippot.com> | 2021-12-13 12:06:06 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2021-12-13 12:06:06 +0100 |
| commit | 4cae14b9f86609b8c1f74d97a033e7091af49cb4 (patch) | |
| tree | f5e81bde47b47947901a00307a47c36e3fc38ffd /src/ts | |
| parent | 45335042c91c6bf5aa736658c461d54f96a6e0f2 (diff) | |
chore: change app to use a layout
I can now insert header/footer on each pages.
Diffstat (limited to 'src/ts')
| -rw-r--r-- | src/ts/types/app.ts | 11 |
1 files changed, 11 insertions, 0 deletions
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; +}; |
