/**
 * Webkul Software.
 *
 * @category  Webkul
 * @package   Webkul_MpPayPal
 * @author    Webkul
 * @copyright Copyright (c) Webkul Software Private Limited (https://webkul.com)
 * @license   https://store.webkul.com/license.html
 */
define(
    [
        'uiComponent',
        'Magento_Checkout/js/model/payment/renderer-list'
    ],
    function (
        Component,
        rendererList
    ) {
        'use strict';
        /**
         * mpPaypalConfig contains all the payment configuration
         */
         var mpPaypalConfig = window.checkoutConfig.payment.mppaypal;
        /**
         * push stripe renderer in the default renderer list
         */
        if (mpPaypalConfig.isActive && mpPaypalConfig.isSellerInCart) {
            rendererList.push(
                {
                    type: 'mppaypal',
                    component: 'Webkul_MpPayPal/js/view/payment/method-renderer/mppaypal'
                }
            );
        }

        return Component.extend({});
    }
);
