import { ReactNode } from 'react'; import Image from '@/components/Image'; import Bleed from 'pliny/ui/Bleed'; import { CoreContent } from 'pliny/utils/contentlayer'; import type { Blog } from 'contentlayer/generated'; import Comments from '@/components/Comments'; import Link from '@/components/Link'; import PageTitle from '@/components/PageTitle'; import SectionContainer from '@/components/SectionContainer'; import siteMetadata from '@/data/siteMetadata'; import ScrollTopAndComment from '@/components/ScrollTopAndComment'; interface LayoutProps { content: CoreContent; children: ReactNode; next?: { path: string; title: string }; prev?: { path: string; title: string }; } export default function PostMinimal({ content, next, prev, children, }: LayoutProps) { const { slug, title, images } = content; const displayImage = images && images.length > 0 ? images[0] : 'https://picsum.photos/seed/picsum/800/400'; return (
{title}
{title}
{children}
{siteMetadata.comments && (
)}
); }