import Image from 'next/image' import Link from 'next/link' import { getAssetUrl } from '@/lib/directus' import type { Article } from '@/lib/types' interface Props { article: Article } export default function ArticleCard({ article }: Props) { const href = `/${article.category.slug}/${article.slug}` return (
{article.featured_image ? ( {article.title} ) : (
)}

{article.category.name}

{article.title}

Read →
) }