import Link from '@/components/Link' import PageTitle from '@/components/PageTitle' import SectionContainer from '@/components/SectionContainer' import { BlogSEO } from '@/components/SEO' import siteMetadata from '@/data/siteMetadata' import formatDate from '@/lib/utils/formatDate' import Comments from '@/components/comments' import ScrollTopAndComment from '@/components/ScrollTopAndComment' import { ReactNode } from 'react' import { PostFrontMatter } from 'types/PostFrontMatter' interface Props { frontMatter: PostFrontMatter children: ReactNode next?: { slug: string; title: string } prev?: { slug: string; title: string } } export default function PostLayout({ frontMatter, next, prev, children }: Props) { const { slug, date, title } = frontMatter return (
Published on
{title}
{children}
) }