import React from 'react'; interface NavigationPost { title: string; path: string; } interface PostProps { // HTML string for the blog post body children: string; meta: { title: string; date: Date; readingTime: string; previousPost?: NavigationPost | null; nextPost?: NavigationPost | null; }; } export function Post({ children, meta }: PostProps) { const { previousPost, nextPost } = meta; return (
Back to Home

{meta.title}

{meta.date && meta.date instanceof Date && <> } {meta.readingTime && <> {meta.readingTime} min read }
) }