mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
26 lines
717 B
TypeScript
26 lines
717 B
TypeScript
import React, { lazy, Suspense } from 'react';
|
|
|
|
import { LazyLoadingIndicator } from './LazyLoadingIndicator';
|
|
|
|
const SelectWallet = lazy(() => import('../screen/wallets/SelectWallet'));
|
|
const LdkOpenChannel = lazy(() => import('../screen/lnd/ldkOpenChannel'));
|
|
const Success = lazy(() => import('../screen/send/success'));
|
|
|
|
export const SelectWalletComponent = () => (
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
|
<SelectWallet />
|
|
</Suspense>
|
|
);
|
|
|
|
export const LdkOpenChannelComponent = () => (
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
|
<LdkOpenChannel />
|
|
</Suspense>
|
|
);
|
|
|
|
export const SuccessComponent = () => (
|
|
<Suspense fallback={<LazyLoadingIndicator />}>
|
|
<Success />
|
|
</Suspense>
|
|
);
|