--- import type { CollectionEntry } from 'astro:content' import type { ReadTimeResults } from 'reading-time' import FormattedDate from './FormattedDate.astro' import ReadingTime from './ReadingTime.astro' type Props = { readingTime: ReadTimeResults } & Pick['data'], 'date' | 'updatedDate'> const { updatedDate, date, readingTime } = Astro.props ---
{ updatedDate && date !== updatedDate && (
Updated:
) }