"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: Object.getOwnPropertyDescriptor(all, name).get
    });
}
_export(exports, {
    get Context () {
        return Context;
    },
    get useSelectContext () {
        return useSelectContext;
    }
});
const _react = require("react");
const Context = /*#__PURE__*/ (0, _react.createContext)(null);
const useSelectContext = ()=>{
    const context = (0, _react.useContext)(Context);
    if (!context) {
        throw new Error('Select context is not available');
    }
    return context;
};
