BlueWallet/navigation/LazyLoadScanQRCodeStack.tsx

12 lines
309 B
TypeScript
Raw Normal View History

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