"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.useIOExperimentalDesign = exports.IOExperimentalDesignContext = exports.IODSExperimentalContextProvider = void 0;
var _react = require("react");
var _jsxRuntime = require("react/jsx-runtime");
/**
 * Experimental Context for new UI Representations
 */
const IOExperimentalDesignContext = exports.IOExperimentalDesignContext = /*#__PURE__*/(0, _react.createContext)({
  isExperimental: false,
  setExperimental: () => void 0
});
const useIOExperimentalDesign = () => (0, _react.useContext)(IOExperimentalDesignContext);
exports.useIOExperimentalDesign = useIOExperimentalDesign;
const IODSExperimentalContextProvider = ({
  children,
  isExperimentaEnabled
}) => {
  const [isExperimental, setExperimental] = (0, _react.useState)(isExperimentaEnabled ?? false);
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(IOExperimentalDesignContext.Provider, {
    value: {
      isExperimental,
      setExperimental
    },
    children: children
  });
};
exports.IODSExperimentalContextProvider = IODSExperimentalContextProvider;
//# sourceMappingURL=IODSExperimentalContextProvider.js.map