2024-05-05 22:33:06 +02:00
|
|
|
import React, { lazy, Suspense } from 'react';
|
2024-05-20 11:54:13 +02:00
|
|
|
|
2024-05-09 02:32:37 +02:00
|
|
|
import { LazyLoadingIndicator } from './LazyLoadingIndicator';
|
2024-05-05 22:33:06 +02:00
|
|
|
|
|
|
|
// Define lazy imports
|
|
|
|
const WalletsAdd = lazy(() => import('../screen/wallets/Add'));
|
|
|
|
const ImportCustomDerivationPath = lazy(() => import('../screen/wallets/importCustomDerivationPath'));
|
2024-05-06 00:37:01 +02:00
|
|
|
const ImportWalletDiscovery = lazy(() => import('../screen/wallets/importDiscovery'));
|
2024-05-06 05:11:29 +02:00
|
|
|
const ImportSpeed = lazy(() => import('../screen/wallets/importSpeed'));
|
2024-05-06 00:37:01 +02:00
|
|
|
const ImportWallet = lazy(() => import('../screen/wallets/import'));
|
2024-05-05 22:33:06 +02:00
|
|
|
const PleaseBackup = lazy(() => import('../screen/wallets/PleaseBackup'));
|
|
|
|
const PleaseBackupLNDHub = lazy(() => import('../screen/wallets/pleaseBackupLNDHub'));
|
|
|
|
const PleaseBackupLdk = lazy(() => import('../screen/wallets/pleaseBackupLdk'));
|
|
|
|
const ProvideEntropy = lazy(() => import('../screen/wallets/provideEntropy'));
|
|
|
|
const WalletsAddMultisig = lazy(() => import('../screen/wallets/addMultisig'));
|
|
|
|
const WalletsAddMultisigStep2 = lazy(() => import('../screen/wallets/addMultisigStep2'));
|
|
|
|
const WalletsAddMultisigHelp = lazy(() => import('../screen/wallets/addMultisigHelp'));
|
|
|
|
|
|
|
|
export const AddComponent = () => (
|
2024-05-09 02:32:37 +02:00
|
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
2024-05-05 22:33:06 +02:00
|
|
|
<WalletsAdd />
|
|
|
|
</Suspense>
|
|
|
|
);
|
|
|
|
|
2024-05-06 00:37:01 +02:00
|
|
|
export const ImportWalletDiscoveryComponent = () => (
|
2024-05-09 02:32:37 +02:00
|
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
2024-05-06 00:37:01 +02:00
|
|
|
<ImportWalletDiscovery />
|
|
|
|
</Suspense>
|
|
|
|
);
|
|
|
|
|
2024-05-05 22:33:06 +02:00
|
|
|
export const ImportCustomDerivationPathComponent = () => (
|
2024-05-09 02:32:37 +02:00
|
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
2024-05-05 22:33:06 +02:00
|
|
|
<ImportCustomDerivationPath />
|
|
|
|
</Suspense>
|
|
|
|
);
|
|
|
|
|
2024-05-06 00:37:01 +02:00
|
|
|
export const ImportWalletComponent = () => (
|
2024-05-09 02:32:37 +02:00
|
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
2024-05-06 00:37:01 +02:00
|
|
|
<ImportWallet />
|
2024-05-05 22:33:06 +02:00
|
|
|
</Suspense>
|
|
|
|
);
|
|
|
|
|
2024-05-06 05:11:29 +02:00
|
|
|
export const ImportSpeedComponent = () => (
|
2024-05-09 02:32:37 +02:00
|
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
2024-05-06 05:11:29 +02:00
|
|
|
<ImportSpeed />
|
|
|
|
</Suspense>
|
|
|
|
);
|
|
|
|
|
2024-05-05 22:33:06 +02:00
|
|
|
export const PleaseBackupComponent = () => (
|
2024-05-09 02:32:37 +02:00
|
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
2024-05-05 22:33:06 +02:00
|
|
|
<PleaseBackup />
|
|
|
|
</Suspense>
|
|
|
|
);
|
|
|
|
|
|
|
|
export const PleaseBackupLNDHubComponent = () => (
|
2024-05-09 02:32:37 +02:00
|
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
2024-05-05 22:33:06 +02:00
|
|
|
<PleaseBackupLNDHub />
|
|
|
|
</Suspense>
|
|
|
|
);
|
|
|
|
|
|
|
|
export const PleaseBackupLdkComponent = () => (
|
2024-05-09 02:32:37 +02:00
|
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
2024-05-05 22:33:06 +02:00
|
|
|
<PleaseBackupLdk />
|
|
|
|
</Suspense>
|
|
|
|
);
|
|
|
|
|
|
|
|
export const ProvideEntropyComponent = () => (
|
2024-05-09 02:32:37 +02:00
|
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
2024-05-05 22:33:06 +02:00
|
|
|
<ProvideEntropy />
|
|
|
|
</Suspense>
|
|
|
|
);
|
|
|
|
|
|
|
|
export const WalletsAddMultisigComponent = () => (
|
2024-05-09 02:32:37 +02:00
|
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
2024-05-05 22:33:06 +02:00
|
|
|
<WalletsAddMultisig />
|
|
|
|
</Suspense>
|
|
|
|
);
|
|
|
|
|
|
|
|
export const WalletsAddMultisigStep2Component = () => (
|
2024-05-09 02:32:37 +02:00
|
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
2024-05-05 22:33:06 +02:00
|
|
|
<WalletsAddMultisigStep2 />
|
|
|
|
</Suspense>
|
|
|
|
);
|
|
|
|
|
|
|
|
export const WalletsAddMultisigHelpComponent = () => (
|
2024-05-09 02:32:37 +02:00
|
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
2024-05-05 22:33:06 +02:00
|
|
|
<WalletsAddMultisigHelp />
|
|
|
|
</Suspense>
|
|
|
|
);
|