2024-05-09 03:04:52 +02:00
|
|
|
import React, { lazy, Suspense } from 'react';
|
2024-05-20 11:54:13 +02:00
|
|
|
|
2024-05-09 03:04:52 +02:00
|
|
|
import { LazyLoadingIndicator } from './LazyLoadingIndicator';
|
|
|
|
|
2024-05-31 19:18:01 +02:00
|
|
|
const SendDetails = lazy(() => import('../screen/send/SendDetails'));
|
2024-05-22 18:08:49 +02:00
|
|
|
const Confirm = lazy(() => import('../screen/send/Confirm'));
|
2024-05-09 03:04:52 +02:00
|
|
|
const PsbtWithHardwareWallet = lazy(() => import('../screen/send/psbtWithHardwareWallet'));
|
|
|
|
const CreateTransaction = lazy(() => import('../screen/send/create'));
|
|
|
|
const PsbtMultisig = lazy(() => import('../screen/send/psbtMultisig'));
|
|
|
|
const PsbtMultisigQRCode = lazy(() => import('../screen/send/psbtMultisigQRCode'));
|
|
|
|
const Success = lazy(() => import('../screen/send/success'));
|
2024-06-08 18:01:56 +02:00
|
|
|
const SelectWallet = lazy(() => import('../screen/wallets/SelectWallet'));
|
2024-05-09 03:04:52 +02:00
|
|
|
const CoinControl = lazy(() => import('../screen/send/coinControl'));
|
2024-06-07 15:37:45 +02:00
|
|
|
const PaymentCodesList = lazy(() => import('../screen/wallets/PaymentCodesList'));
|
2024-05-09 03:04:52 +02:00
|
|
|
|
|
|
|
// Export each component with its lazy loader and optional configurations
|
|
|
|
export const SendDetailsComponent = () => (
|
|
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
|
|
|
<SendDetails />
|
|
|
|
</Suspense>
|
|
|
|
);
|
|
|
|
export const ConfirmComponent = () => (
|
|
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
|
|
|
<Confirm />
|
|
|
|
</Suspense>
|
|
|
|
);
|
|
|
|
export const PsbtWithHardwareWalletComponent = () => (
|
|
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
|
|
|
<PsbtWithHardwareWallet />
|
|
|
|
</Suspense>
|
|
|
|
);
|
|
|
|
export const CreateTransactionComponent = () => (
|
|
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
|
|
|
<CreateTransaction />
|
|
|
|
</Suspense>
|
|
|
|
);
|
|
|
|
export const PsbtMultisigComponent = () => (
|
|
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
|
|
|
<PsbtMultisig />
|
|
|
|
</Suspense>
|
|
|
|
);
|
|
|
|
export const PsbtMultisigQRCodeComponent = () => (
|
|
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
|
|
|
<PsbtMultisigQRCode />
|
|
|
|
</Suspense>
|
|
|
|
);
|
|
|
|
export const SuccessComponent = () => (
|
|
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
|
|
|
<Success />
|
|
|
|
</Suspense>
|
|
|
|
);
|
|
|
|
export const SelectWalletComponent = () => (
|
|
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
|
|
|
<SelectWallet />
|
|
|
|
</Suspense>
|
|
|
|
);
|
|
|
|
export const CoinControlComponent = () => (
|
|
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
|
|
|
<CoinControl />
|
|
|
|
</Suspense>
|
|
|
|
);
|
2024-06-07 15:37:45 +02:00
|
|
|
|
|
|
|
export const PaymentCodesListComponent = () => (
|
|
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
|
|
|
<PaymentCodesList />
|
|
|
|
</Suspense>
|
|
|
|
);
|