import React, { Suspense } from "react";

// TODO: 这个组件不知道为啥某些路由用不了，后面研究下
const LazyLoad = (props: { lazy: React.ReactNode }) => {
  return <Suspense fallback={<div>Loading...</div>}>{props.lazy}</Suspense>;
};

export const Loading = () => <div>Loading</div>;

export default LazyLoad;
