@shopgate/engage
Version:
Shopgate's ENGAGE library.
22 lines (21 loc) • 525 B
JavaScript
import React from 'react';
import { isAvailable } from '@shopgate/native-modules';
import PaypalButtonWeb from "./PaypalButtonWeb";
import PaypalButtonApp from "./PaypalButtonApp";
/**
* Paypal
* @param {Object} props Props
* @returns {JSX}
*/
import { jsx as _jsx } from "react/jsx-runtime";
const PaypalButton = props => {
if (!isAvailable()) {
return /*#__PURE__*/_jsx(PaypalButtonWeb, {
...props
});
}
return /*#__PURE__*/_jsx(PaypalButtonApp, {
...props
});
};
export default PaypalButton;