import React, { ReactNode } from "react"; import { EventSetting } from "./EventSetting"; import { Link } from "./Link"; import styles from "./MiniEventCard.module.css"; interface MiniEventCardProps { name: string; description: ReactNode; short: string; online: boolean; location: string; startDate: Date; endDate?: Date; background: "dark-bg" | "normal-bg"; year: number; term: string; slug: string; } export const MiniEventCard: React.FC = ({ name, short, description, location, startDate, endDate, online, background, year, term, slug, }) => { const cardBackground = background === "dark-bg" ? `${styles.darkBg} ${styles.card}` : styles.card; return (
event.preventDefault()}>

{name}

{short}

View details {dropDownIcon}
{description}
); }; const dropDownIcon = ( );