import { createContext, useContext } from 'react';
/**
 * This provides the data that will be used by Smart Links Flexible UI to populate it's
 * underlying elements.
 */
export const FlexibleCardContext = /*#__PURE__*/createContext(undefined);
export const useFlexibleCardContext = () => useContext(FlexibleCardContext);
export const useFlexibleUiContext = () => {
  var _useFlexibleCardConte;
  return (_useFlexibleCardConte = useFlexibleCardContext()) === null || _useFlexibleCardConte === void 0 ? void 0 : _useFlexibleCardConte.data;
};
export const useFlexibleUiOptionContext = () => {
  var _useFlexibleCardConte2;
  return (_useFlexibleCardConte2 = useFlexibleCardContext()) === null || _useFlexibleCardConte2 === void 0 ? void 0 : _useFlexibleCardConte2.ui;
};