--- import TerminalBorder from "@components/TerminalBorder.astro"; function formatDate(date: Date) { const day = date.getDate(); const month = date.toLocaleString("default", { month: "long" }); const year = date.getFullYear(); return `${month} ${day}, ${year}`; } interface Props { title: string; description: string; date: Date; href?: string; header?: string; } const { title, description, date, href, header } = Astro.props; --- { href ? (

{title}

{description}

) : ( <>

{title}

{description}

) }