From 83a029084f1bbfd78b7099d9bea3371d4533c6d9 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Tue, 3 May 2022 16:51:22 +0200 Subject: chore: add a LegalNotice page --- src/ts/types/mdx.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/ts/types/mdx.ts (limited to 'src/ts/types/mdx.ts') diff --git a/src/ts/types/mdx.ts b/src/ts/types/mdx.ts new file mode 100644 index 0000000..6b72f21 --- /dev/null +++ b/src/ts/types/mdx.ts @@ -0,0 +1,20 @@ +import { StaticImageData } from 'next/image'; +import { Meta } from './app'; + +export type MDXData = { + file: string; + image: StaticImageData; +}; + +export type MDXPageMeta = Pick, 'cover' | 'dates' | 'seo'> & { + intro: string; + title: string; +}; + +export type MDXProjectMeta = Omit< + Meta<'project'>, + 'readingTime' | 'wordsCount' +> & { + intro: string; + title: string; +}; -- cgit v1.2.3