next-sanity
Version:
Sanity.io toolkit for Next.js
20 lines (19 loc) • 747 B
JavaScript
"use client";
import { jsx } from "react/jsx-runtime";
import { Suspense, lazy } from "react";
/**
*
* If pages router supported `next/dynamic` imports (it wants `next/dynamic.js`),
* or if turbopack in app router allowed `next/dynamic.js` (it doesn't yet)
* we could use `dynamic(() => import('...), {ssr: false})` here.
* Since we can't, we need to use a lazy import and Suspense ourself.
*/
const NextStudioClientComponent = lazy(() => import("../../NextStudio.js"));
function NextStudioLazyClientComponent(props) {
return /* @__PURE__ */ jsx(Suspense, {
fallback: null,
children: /* @__PURE__ */ jsx(NextStudioClientComponent, { ...props })
});
}
export { NextStudioLazyClientComponent as NextStudio };
//# sourceMappingURL=index.js.map