import { ArrowRight } from "lucide-react"; import Link from "next/link"; interface BlogPost { slug: string; title: string; excerpt: string; categories: string[]; } interface BlogPreviewSectionProps { posts?: BlogPost[]; } export function BlogPreviewSection({ posts }: BlogPreviewSectionProps) { return (

From the network

Latest from the Blog

View All
{!posts || posts.length === 0 ? (

No posts yet. Check back soon for curated Bitcoin content.

) : (
{posts.map((post) => ( {post.categories.length > 0 && (
{post.categories.map((cat) => ( {cat} ))}
)}

{post.title}

{post.excerpt}

Read More ))}
)} View All
); }