BlueWallet/navigation/LazyLoadAztecoRedeemStack.tsx

18 lines
559 B
TypeScript
Raw Normal View History

2024-05-11 18:33:55 +02:00
import React, { lazy, Suspense } from 'react';
import { LazyLoadingIndicator } from './LazyLoadingIndicator';
const AztecoRedeem = lazy(() => import('../screen/receive/aztecoRedeem'));
const SelectWallet = lazy(() => import('../screen/wallets/selectWallet')); // Assuming the path is correct
export const AztecoRedeemComponent = () => (
<Suspense fallback={<LazyLoadingIndicator />}>
<AztecoRedeem />
</Suspense>
);
export const SelectWalletComponent = () => (
<Suspense fallback={<LazyLoadingIndicator />}>
<SelectWallet />
</Suspense>
);