import React from "react"; import { EventDescriptionCard } from "./EventDescriptionCard"; import styles from "./playground.module.css"; import AfterHoursContent, { metadata as afterHoursMetadata, } from "../content/playground/after-hours.event.mdx"; import UnavailableContent, { metadata as unavailableMetadata, } from "../content/playground/unavailable.news.mdx"; import { MiniEventCard } from "./MiniEventCard"; import { NewsCard } from "./NewsCard"; export function MiniEventCardDemo() { const { name, location, short, date } = afterHoursMetadata; const dateString = date.toLocaleDateString("en-US", { day: "numeric", month: "long", year: "numeric", }); const timeString = date.toLocaleTimeString("en-US", { hour: "numeric", minute: "numeric", }); return (
{short}
{short}
{short}