-
Notifications
You must be signed in to change notification settings - Fork 576
/
Copy pathhosted-buttons.js
34 lines (28 loc) · 1.1 KB
/
hosted-buttons.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* @flow */
import { getHostedButtonsComponent } from "../hosted-buttons";
import type { HostedButtonsComponent } from "../hosted-buttons/types";
import { getButtonsComponent } from "../zoid/buttons";
import {
getCardFormComponent,
type CardFormComponent,
} from "../zoid/card-form";
import { getQRCodeComponent, type QRCodeComponent } from "../zoid/qr-code";
import { getCheckoutComponent, type CheckoutComponent } from "../zoid/checkout";
import type { LazyExport, LazyProtectedExport } from "../types";
import { protectedExport } from "../lib";
export const HostedButtons: LazyExport<HostedButtonsComponent> = {
__get__: () => getHostedButtonsComponent(),
};
export const Checkout: LazyProtectedExport<CheckoutComponent> = {
__get__: () => protectedExport(getCheckoutComponent()),
};
export const CardForm: LazyProtectedExport<CardFormComponent> = {
__get__: () => protectedExport(getCardFormComponent()),
};
export const QRCode: LazyProtectedExport<QRCodeComponent> = {
__get__: () => protectedExport(getQRCodeComponent()),
};
export function setup() {
getButtonsComponent();
getCheckoutComponent();
}