MCPcopy Create free account
hub / github.com/nodejs/nodejs.org / Event

Function Event

apps/site/components/MDX/Calendar/Event/index.tsx:15–42  ·  view source on GitHub ↗
({
  start,
  end,
  description,
  summary,
  location,
})

Source from the content-addressed store, hash-verified

13>;
14
15const 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
44export default Event;

Callers

nothing calls this directly

Calls 2

isZonedFunction · 0.90
getZoomLinkFunction · 0.90

Tested by

no test coverage detected