import Link from "next/link"; import { formatDate } from "@/lib/format"; import { games } from "@/lib/games"; import type { DevblogPost } from "@/lib/devblog"; type Props = { posts: DevblogPost[]; /** Heading level for each entry, so the page outline stays valid. */ as?: "h2" | "h3"; /** Show the related game as a tag. Off on a game page (redundant there). */ showGame?: boolean; }; /** * The devblog entry list. Shared by /devblog, the home page teaser and the * "latest articles" block of a game page, so an entry looks identical * everywhere it appears. */ export function PostList({ posts, as: Tag = "h2", showGame = true }: Props) { return ( ); }