import { createContext, useContext } from 'react';

const defaultPromoCardContext = {
  state: '',
  isDisabled: false,
  // eslint-disable-next-line @typescript-eslint/no-empty-function
  onChange: () => {}
};
/**
 * The PromoCard context object.
 */
const PromoCardContext = /*#__PURE__*/createContext(defaultPromoCardContext);
/**
 * A custom hook for accessing the PromoCard context object.
 *
 * The `usePromoCardContext` hook is used to access the PromoCard context object
 * from within a child PromoCard component. It throws an error if the context
 * object is not available, which can help with debugging and development.
 *
 * @returns {PromoCardContextType} - The PromoCard context object.
 */
const usePromoCardContext = () => {
  return useContext(PromoCardContext);
};

export { PromoCardContext, PromoCardContext as default, usePromoCardContext };
//# sourceMappingURL=PromoCardContext.mjs.map
