import React, { ReactNode } from "react"; import { Button } from "./Button"; import styles from "./EventCard.module.css"; import { EventSetting } from "./EventSetting"; import { Image } from "./Image"; interface EventCardProps { name: string; short: string; date: Date; online: boolean; location: string; poster?: string; registerLink?: string; children: ReactNode; } export function EventCard({ name, date, online, location, poster, registerLink, children, }: EventCardProps) { return (

{name}

{children}
); }