text: import React, { Suspense } from 'react';
  
  function WaitingComponent(Component) {
    return props => (
      <Suspense fallback={<div>Loading...</div>}>
        <Component {...props} />
      </Suspense>
    );
  }
  
  export default WaitingComponent;
  