import { useApi } from './api.mjs';
import { useSubscription } from './subscription.mjs';

/**
 * Returns the `checkoutSettings` applied to the checkout.
 */
function useCheckoutSettings() {
  return useSubscription(useApi().checkoutSettings);
}

export { useCheckoutSettings };
