Computer Science Club of the University of Waterloo's website.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
809 B

import React from "react";
import styles from "./EventSetting.module.css";
interface Props {
date: Date;
online: boolean;
location: string;
export function EventSetting(props: Props) {
const date ="en-US", {
day: "numeric",
month: "long",
year: "numeric",
const time ="en-US", {
hour: "numeric",
minute: "numeric",
timeZoneName: "short",
const location = ? `Online - ${props.location}` : props.location;
const separator = <span className={styles.separator}> | </span>;
return (
<div className={styles.container}>
<time dateTime={}>{date}</time>