import React, { ReactNode } from "react"; import { Image } from "./Image"; import { Link } from "./Link"; import styles from "./TechTalkCard.module.css"; interface DownloadLink { file: string; type: string; size?: string; } interface TechTalkProps { title: string; presentors: string[]; poster: string; links: DownloadLink[]; children: ReactNode; } export function TechTalkCard({ title, poster, presentors, links, children, }: TechTalkProps) { return (

{title}

{children}

Download:

); } function DownloadLink({ file, type, size }: DownloadLink) { const text = size ? `${type} (${size})` : type; return {text}; }