nextload/src/components/PostPage.tsx
tobias 4dfe80213e
Some checks failed
continuous-integration/drone/push Build is failing
Use collection config for slugs and correct locale for links
2024-06-24 09:55:03 +02:00

21 lines
495 B
TypeScript

import React from 'react'
import { Post } from 'types/payload-types'
import Blocks from './Blocks'
import Author from './Blocks/Author'
interface Props {
post: Post
locale: string
}
export default function PostPage(props: Props) {
return (
<article className="leading-relaxed">
<Blocks blocks={props?.post.blocks} locale="" />
{props?.post.author && typeof props?.post.author !== 'string' && (
<Author author={props?.post.author} />
)}
</article>
)
}