import { jsx as _jsx } from "react/jsx-runtime";
import { useHappening, useTimezone } from "./context.js";
export function HappeningAt() {
    const happening = useHappening();
    const timezone = useTimezone();
    let message = "This event is happening";
    if (happening.startedAt) {
        message = `Started at ${happening.startAt}`;
    }
    else if (happening.startAt) {
        message = `Starts at ${happening.startAt}`;
    }
    else if (happening.endedAt) {
        message = `Ended at ${happening.endedAt}`;
    }
    else if (happening.endAt) {
        message = `Ends at ${happening.endAt}`;
    }
    return (_jsx("div", { children: message }));
}
//# sourceMappingURL=at.js.map