import { Fragment, jsx } from "react/jsx-runtime";
import * as React from "react";
import { Suspense } from "react";
const ACTIVITY_KEY = "Activity";
const Activity = React[ACTIVITY_KEY];
function supportsActivity() {
  return Activity != null;
}
function ActivityOrFallback({ suspenseFallback = true, children }) {
  if (supportsActivity()) {
    return /* @__PURE__ */ jsx(Activity, { children });
  }
  return suspenseFallback ? /* @__PURE__ */ jsx(Suspense, { children }) : /* @__PURE__ */ jsx(Fragment, { children });
}
export {
  ActivityOrFallback,
  supportsActivity
};
//# sourceMappingURL=activity-with-fallback.js.map