@malga-checkout/core
Version:
Core components for Malga Checkout
24 lines (23 loc) • 845 B
JavaScript
import { Component, Host, h } from '@stencil/core';
import payment from '../../../../stores/payment';
export class MalgaPaymentsDripIframe {
constructor() {
this.handleCloseIframe = () => {
payment.paymentUrl = '';
};
}
render() {
return (h(Host, { class: { 'malga-payments-drip-iframe__container': true } },
h("div", { class: { 'malga-payments-drip-iframe__modal': true } },
h("button", { onClick: this.handleCloseIframe },
h("checkout-icon", { icon: "close" })),
h("iframe", { src: payment.paymentUrl, title: "Drip", frameBorder: 0 }))));
}
static get is() { return "malga-payments-drip-iframe"; }
static get originalStyleUrls() { return {
"$": ["malga-payments-drip-iframe.scss"]
}; }
static get styleUrls() { return {
"$": ["malga-payments-drip-iframe.css"]
}; }
}