2024-05-10 03:08:59 +02:00
|
|
|
import React, { lazy, Suspense } from 'react';
|
2024-05-20 11:54:13 +02:00
|
|
|
|
2024-05-10 03:08:59 +02:00
|
|
|
import { LazyLoadingIndicator } from './LazyLoadingIndicator';
|
|
|
|
|
|
|
|
// Lazy loading components for the navigation stack
|
|
|
|
const ScanLndInvoice = lazy(() => import('../screen/lnd/scanLndInvoice'));
|
2024-06-08 18:01:56 +02:00
|
|
|
const SelectWallet = lazy(() => import('../screen/wallets/SelectWallet'));
|
2024-05-10 03:08:59 +02:00
|
|
|
const Success = lazy(() => import('../screen/send/success'));
|
|
|
|
const LnurlPay = lazy(() => import('../screen/lnd/lnurlPay'));
|
|
|
|
const LnurlPaySuccess = lazy(() => import('../screen/lnd/lnurlPaySuccess'));
|
|
|
|
|
|
|
|
export const ScanLndInvoiceComponent = () => (
|
|
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
|
|
|
<ScanLndInvoice />
|
|
|
|
</Suspense>
|
|
|
|
);
|
|
|
|
|
|
|
|
export const SelectWalletComponent = () => (
|
|
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
|
|
|
<SelectWallet />
|
|
|
|
</Suspense>
|
|
|
|
);
|
|
|
|
|
|
|
|
export const SuccessComponent = () => (
|
|
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
|
|
|
<Success />
|
|
|
|
</Suspense>
|
|
|
|
);
|
|
|
|
|
|
|
|
export const LnurlPayComponent = () => (
|
|
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
|
|
|
<LnurlPay />
|
|
|
|
</Suspense>
|
|
|
|
);
|
|
|
|
|
|
|
|
export const LnurlPaySuccessComponent = () => (
|
|
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
|
|
|
<LnurlPaySuccess />
|
|
|
|
</Suspense>
|
|
|
|
);
|