({
start,
end,
description,
summary,
location,
})
| 13 | >; |
| 14 | |
| 15 | const Event: FC<EventProps> = ({ |
| 16 | start, |
| 17 | end, |
| 18 | description, |
| 19 | summary, |
| 20 | location, |
| 21 | }) => ( |
| 22 | <div className={styles.event}> |
| 23 | <div className={styles.title}> |
| 24 | <span> |
| 25 | <FormattedTime |
| 26 | date={isZoned(start) ? start.dateTime : start.date} |
| 27 | format={{ hour: 'numeric', minute: 'numeric' }} |
| 28 | /> |
| 29 | </span> |
| 30 | <span>-</span> |
| 31 | <span> |
| 32 | <FormattedTime |
| 33 | date={isZoned(end) ? end.dateTime : end.date} |
| 34 | format={{ hour: 'numeric', minute: 'numeric' }} |
| 35 | /> |
| 36 | </span> |
| 37 | <small>(UTC)</small> |
| 38 | </div> |
| 39 | |
| 40 | <Link href={getZoomLink({ description, location })}>{summary}</Link> |
| 41 | </div> |
| 42 | ); |
| 43 | |
| 44 | export default Event; |
nothing calls this directly
no test coverage detected