import React, { ReactNode } from "react"; import { Link } from "./Link"; import styles from "./MiniNewsCard.module.css"; interface MiniNewsCardProps { date: Date; author: string; children: ReactNode; permalink: string; fit?: boolean; } export const MiniNewsCard: React.FC = ({ date, author, children, permalink, fit = false, }) => { const classes = fit ? [styles.card, styles.fit] : [styles.card]; return (

{author}
{children}
Learn more
); };