import React, { DetailedHTMLProps } from 'react'; import imageUrl from '../lib/imageUrl'; import '../css/article.css'; import ClickableLink from './ClickableLink'; export default function ArticleRow({ article, }: { article: SGA.ArticleDocument; }) { let thumbnail: React.ReactElement | null = null; if (article.thumbnail) { thumbnail = ( {article.title} ); } const slug = (s: string) => { return s.toLowerCase().replaceAll(' ', '-'); }; return (
{thumbnail}

{article.title}

{article.publish_date}
{article.author ?? 'No author'}

{article.summary}

); }