---
import type { HTMLTag, Polymorphic } from 'astro/types'
import type { CollectionEntry } from 'astro:content'
import FormattedDate from '../FormattedDate.astro'
type Props = Polymorphic<{ as: Tag }> & {
post: CollectionEntry<'post'>
withDesc?: boolean
}
const { as: Tag = 'div', post, withDesc = false } = Astro.props
const postDate = post.data.date
---
{post.data.draft && (Draft) }
{post.data.title}
{
withDesc && (
{post.data.description}
)
}