--- import { format, formatDistance } from 'date-fns' type Props = { date: Date | undefined } const { date } = Astro.props --- { date ? ( ) : null }