import {ReactNode} from 'react' import Head from 'next/head' import {usePathname} from 'next/navigation' import {Container} from './Container' import {formatDate} from '@/lib/formatDate' import {Prose} from './Prose' import {Views} from './Views' type ArticleLayout = { children?: ReactNode isRssFeed: boolean title: string description: string ogImage: string date: string slug: string } export function ArticleLayout({ children, isRssFeed = false, title, description, ogImage, date, slug }: ArticleLayout) { const pathname = usePathname() if (isRssFeed) { return children } return ( <> {`${title} - Ryan Freeman`} {ogImage && <> }

{title}

{children}
) }