import { formatDate, formatDistance, parseISO } from "date-fns"; import type { ChangelogItem } from "../types"; export function ChangelogSection({ items }: { items: ChangelogItem[] }) { return (
{items?.map((item, i) => (
{formatDistance(parseISO(item.date), new Date(), { addSuffix: true, })}
    {item.changes.map((change, j) => (
  • {change}
  • ))}
))}
); }