import './styles.css' import cx from 'classnames' import { Date } from './Date' import { IImage } from 'src/types' import Link from 'next/link' export interface IArticleCardProps { style?: React.CSSProperties article: any preview?: IImage } export const ArticleCard: React.FC = ({ article, ...props }) => (
{!props.preview ? null : ( {props.preview.alt} `${url} ${density}x`).join(' ')} /> )}
{article.title} {!article.date ? null : ( {article.date} )}
)