import * as React from "react"; import { getStartDayMonthAbbr, getEventStartDayString, getEventStartEndTimes, } from "../../../helpers/displayEvent"; import { EventEvent, ViewProps } from "../../../../types/types"; import { Grid, Stack, Typography } from "@mui/material"; import EventLocation from "../../atoms/EventLocation"; import EventDateTime from "../../atoms/EventDateTime"; import EventTitle from "../../atoms/EventTitle"; const InlineCompactInner = ({ event, listclass, }: { event: EventEvent; listclass: string; }) => { const abbrMonth = getStartDayMonthAbbr(event); const eventDay = getEventStartDayString(event); return ( {abbrMonth} {eventDay} ); }; const InlineCompact = (props: ViewProps) => { const { events, wrapperclass, listclass } = props; if (events.length === 0) { return

There are no upcoming events.

; } return ( {events.map((event) => { return ( ); })} ); }; export default InlineCompact;