--- import type { Document } from '../lib/content'; import EntryCard from './EntryCard.astro'; type Props = { entries: Document[]; title?: string }; const { entries, title } = Astro.props; --- {entries.length > 0 && (
{title &&

{title}

} {entries.map((entry) => ( ))}
)}