import { Post } from 'types/payload-types' import Image from 'next/image' import { COLLECTION_SLUG_POST } from '@/app/(payload)/collections/config' interface Props { post: Post } export default function PostEntry(props: Props) { if (typeof props.post.thumbnail === 'string') return return (
{props.post.thumbnail.alt

{props.post.title}

{props.post.publishedDate && (

{new Date(props.post.publishedDate).toLocaleDateString('de-DE')}

)}
{props.post.summary &&

{props.post.summary}

}
{/* {props.post.author.name && (

{props.post.author.name}

)} */}
) }