import { createContext, useContext } from "react";
import { ok } from "../../../../is.js";
export const TimezoneContext = createContext("Pacific/Auckland");
export const TimezoneProvider = TimezoneContext.Provider;
export const HappeningContext = createContext(undefined);
export const HappeningProvider = HappeningContext.Provider;
export function useHappening() {
    const context = useContext(HappeningContext);
    ok(context);
    return context;
}
export function useTimezone() {
    return useContext(TimezoneContext);
}
//# sourceMappingURL=context.js.map