import React, { useState, Suspense } from 'react'; import { ReactFlowProvider } from 'reactflow'; import { Sparkles } from 'lucide-react'; import LandingPage from './components/LandingPage'; // Lazy load the heavy builder component to improve initial load performance const Builder = React.lazy(() => import('./components/Builder')); // Loading screen fallback for Suspense const LoadingScreen = () => (

Loading Builder Environment...

); const App = () => { const [showLanding, setShowLanding] = useState(true); if (showLanding) { return setShowLanding(false)} />; } return ( }> setShowLanding(true)} /> ); }; export default App;