mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
40 lines
1.3 KiB
TypeScript
40 lines
1.3 KiB
TypeScript
import React, { lazy, Suspense } from 'react';
|
|
|
|
import { LazyLoadingIndicator } from './LazyLoadingIndicator';
|
|
|
|
const LNDCreateInvoice = lazy(() => import('../screen/lnd/lndCreateInvoice'));
|
|
const SelectWallet = lazy(() => import('../screen/wallets/SelectWallet'));
|
|
const LNDViewInvoice = lazy(() => import('../screen/lnd/lndViewInvoice'));
|
|
const LNDViewAdditionalInvoiceInformation = lazy(() => import('../screen/lnd/lndViewAdditionalInvoiceInformation'));
|
|
const LNDViewAdditionalInvoicePreImage = lazy(() => import('../screen/lnd/lndViewAdditionalInvoicePreImage'));
|
|
|
|
export const LNDCreateInvoiceComponent = () => (
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
|
<LNDCreateInvoice />
|
|
</Suspense>
|
|
);
|
|
|
|
export const SelectWalletComponent = () => (
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
|
<SelectWallet />
|
|
</Suspense>
|
|
);
|
|
|
|
export const LNDViewInvoiceComponent = () => (
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
|
<LNDViewInvoice />
|
|
</Suspense>
|
|
);
|
|
|
|
export const LNDViewAdditionalInvoiceInformationComponent = () => (
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
|
<LNDViewAdditionalInvoiceInformation />
|
|
</Suspense>
|
|
);
|
|
|
|
export const LNDViewAdditionalInvoicePreImageComponent = () => (
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
|
<LNDViewAdditionalInvoicePreImage />
|
|
</Suspense>
|
|
);
|