Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import ShopifyBuy from 'shopify-buy/dist/shopify-buy.umd.polyfilled';
import UI from './ui';
import productTemplates from './templates/product';
ShopifyBuy.UI = {
ui: null,
init(client, integrations = {}, styleOverrides) {
if (!this.ui) {
this.ui = new UI(client, integrations, styleOverrides);
}
return this.ui;
},
adapterHelpers: {
templates: {
product: productTemplates,
},
},
UIConstructor: UI,