import { jsx } from "react/jsx-runtime";
import { lazy, Suspense } from "react";
import { WaitMessageLauncher } from "../wait-message/wait-message-launcher.js";
const loadable = (importFunc, fallback = /* @__PURE__ */ jsx(WaitMessageLauncher, {})) => {
  const LazyComponent = lazy(importFunc);
  return (props) => /* @__PURE__ */ jsx(Suspense, { fallback, children: /* @__PURE__ */ jsx(LazyComponent, { ...props }) });
};
export {
  loadable
};
