import ArticleCard from '@/components/article/ArticleCard' import type { Article } from '@/lib/types' interface Props { articles: Article[] title?: string } export default function ArticleGrid({ articles, title }: Props) { if (articles.length === 0) return null return (
{title && (

{title}

)}
{articles.map((article) => ( ))}
) }