import * as React from "react";
import { ESpinner, Spinner } from "..";

const LazyDataImporter = React.lazy(() => import("./module"));

export const DataImporter = (props: any) => (
  <React.Suspense
    fallback={
      <Spinner
        spinner={ESpinner.Grid}
        delay={100}
        data-component="Spinner$Brevity"
      />
    }
  >
    <LazyDataImporter {...props} />
  </React.Suspense>
);
