"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.useFlexibleUiOptionContext = exports.useFlexibleUiContext = exports.useFlexibleCardContext = exports.FlexibleCardContext = void 0;
var _react = require("react");
/**
 * This provides the data that will be used by Smart Links Flexible UI to populate it's
 * underlying elements.
 */
var FlexibleCardContext = exports.FlexibleCardContext = /*#__PURE__*/(0, _react.createContext)(undefined);
var useFlexibleCardContext = exports.useFlexibleCardContext = function useFlexibleCardContext() {
  return (0, _react.useContext)(FlexibleCardContext);
};
var useFlexibleUiContext = exports.useFlexibleUiContext = function useFlexibleUiContext() {
  var _useFlexibleCardConte;
  return (_useFlexibleCardConte = useFlexibleCardContext()) === null || _useFlexibleCardConte === void 0 ? void 0 : _useFlexibleCardConte.data;
};
var useFlexibleUiOptionContext = exports.useFlexibleUiOptionContext = function useFlexibleUiOptionContext() {
  var _useFlexibleCardConte2;
  return (_useFlexibleCardConte2 = useFlexibleCardContext()) === null || _useFlexibleCardConte2 === void 0 ? void 0 : _useFlexibleCardConte2.ui;
};