import React from 'react' import { BookOpen, Clock, Calendar, ArrowRight } from 'lucide-react' import { AnimateIn } from '@/components/AnimateIn' interface Article { title: string category: string readTime?: string date?: string excerpt: string content?: string } interface BlogListBlockProps { badge?: string heading: string subheading?: string readMoreLabel?: string articles?: Article[] } export function BlogListBlockComponent(props: BlogListBlockProps) { const { badge, heading, subheading, articles } = props return (
{badge && (
{badge}
)}

{heading}

{subheading && (

{subheading}

)}
{articles && articles.length > 0 && (
{articles.map((art, idx) => (
{/* Top Row: Category Badge & Read Time (No Wrapping / No Overlap) */}
{art.category} {art.readTime && ( {art.readTime} )}

{art.title}

{art.excerpt}

{art.date && ( {art.date} )} {props.readMoreLabel && (
{props.readMoreLabel}
)}
))}
)}
) }