"use strict";

import { createContext, useContext, useState } from "react";
import { jsx as _jsx } from "react/jsx-runtime";
/**
 * Experimental Context for new UI Representations
 */
export const IOExperimentalDesignContext = /*#__PURE__*/createContext({
  isExperimental: false,
  setExperimental: () => void 0
});
export const useIOExperimentalDesign = () => useContext(IOExperimentalDesignContext);
export const IODSExperimentalContextProvider = ({
  children,
  isExperimentaEnabled
}) => {
  const [isExperimental, setExperimental] = useState(isExperimentaEnabled ?? false);
  return /*#__PURE__*/_jsx(IOExperimentalDesignContext.Provider, {
    value: {
      isExperimental,
      setExperimental
    },
    children: children
  });
};
//# sourceMappingURL=IODSExperimentalContextProvider.js.map