diff --git a/components/updates/update-card.tsx b/components/updates/update-card.tsx new file mode 100644 index 0000000..6619cc0 --- /dev/null +++ b/components/updates/update-card.tsx @@ -0,0 +1,27 @@ +import Link from "next/link" +import type { UpdateMeta } from "@/lib/updates" + +export function UpdateCard({ update }: { update: UpdateMeta }) { + const formattedDate = new Date(update.date).toLocaleDateString("en-US", { + year: "numeric", + month: "long", + day: "numeric", + }) + + return ( + + + + + v{update.version} + + {formattedDate} + + + {update.title} + + {update.summary} + + + ) +}
{update.summary}