import React, { createContext, useContext } from "react";
const Context = createContext(undefined);
export function CloudUiProvider({ children, apiKey }) {
    return (React.createElement(Context.Provider, { value: { apiKey } },
        React.createElement(React.Fragment, null, children)));
}
export const useCloudUiProvider = () => {
    const context = useContext(Context);
    if (context === undefined) {
        throw new Error("useCloudUiProvider must be used inside CloudUiProvider");
    }
    return context;
};
//# sourceMappingURL=Providers.js.map