BlueWallet/navigation/LazyLoadScanQRCodeStack.tsx

12 lines
309 B
TypeScript
Raw Normal View History

2024-05-10 19:56:08 -04:00
import React, { lazy, Suspense } from 'react';
2024-05-20 10:54:13 +01:00
2024-05-10 19:56:08 -04:00
import { LazyLoadingIndicator } from './LazyLoadingIndicator';
const ScanQRCode = lazy(() => import('../screen/send/ScanQRCode'));
export const ScanQRCodeComponent = () => (
<Suspense fallback={<LazyLoadingIndicator />}>
<ScanQRCode />
</Suspense>
);