"use strict";

import { createContext, useContext, useState } from "react";
import { jsx as _jsx } from "react/jsx-runtime";
/**
 * Experimental Context for new UI Representations
 */
export const IONewTypefaceContext = /*#__PURE__*/createContext({
  newTypefaceEnabled: true,
  setNewTypefaceEnabled: () => void 0
});
export const useIONewTypeface = () => useContext(IONewTypefaceContext);
export const IONewTypefaceContextProvider = ({
  children,
  isNewTypefaceEnabled
}) => {
  const [newTypefaceEnabled, setNewTypefaceEnabled] = useState(isNewTypefaceEnabled ?? true);
  return /*#__PURE__*/_jsx(IONewTypefaceContext.Provider, {
    value: {
      newTypefaceEnabled,
      setNewTypefaceEnabled
    },
    children: children
  });
};
//# sourceMappingURL=IONewTypefaceContextProvider.js.map