import Link from "next/link"; import { Stack, Box, Typography, Divider } from "@mui/material"; import type { PostMeta } from "../lib/mdx"; import { PostCard } from "./PostCard"; export function BlogTagList({ title, tag, blogRootUrl, showFullContent, posts, }: { title?: string; tag: string; blogRootUrl: string; showFullContent?: boolean; posts: PostMeta[]; }) { if (!posts.length) return null; return ( {/* Tag heading */} Tag: {posts[0]!.tags?.find(t => t.slug === tag)?.name ?? tag} {/* Posts */} {posts.map((post) => ( ))} {/* Back link */} ← Back to {title ?? "Blog"} ); }