next-sanity
Version:
Sanity.io toolkit for Next.js
55 lines (54 loc) • 1.64 kB
JavaScript
"use strict";
var jsxRuntime = require("react/jsx-runtime"), react = require("react");
const NextStudioLayoutComponent = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx(
"div",
{
id: "sanity",
"data-ui": "NextStudioLayout",
style: {
height: "100vh",
maxHeight: "100dvh",
overscrollBehavior: "none",
WebkitFontSmoothing: "antialiased",
overflow: "auto"
},
children
}
), NextStudioLayout = react.memo(NextStudioLayoutComponent), NextStudioNoScript = () => /* @__PURE__ */ jsxRuntime.jsx("noscript", { children: /* @__PURE__ */ jsxRuntime.jsx(
"div",
{
style: {
position: "absolute",
top: 0,
right: 0,
left: 0,
bottom: 0,
background: "#fff",
zIndex: 1
},
children: /* @__PURE__ */ jsxRuntime.jsxs(
"div",
{
style: {
position: "absolute",
top: "50%",
left: "50%",
transform: "translate(-50%, -50%)",
textAlign: "center",
fontFamily: "helvetica, arial, sans-serif"
},
children: [
/* @__PURE__ */ jsxRuntime.jsx("h1", { children: "JavaScript disabled" }),
/* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
"Please ",
/* @__PURE__ */ jsxRuntime.jsx("a", { href: "https://www.enable-javascript.com/", children: "enable JavaScript" }),
" in your browser and reload the page to proceed."
] })
]
}
)
}
) });
exports.NextStudioLayout = NextStudioLayout;
exports.NextStudioNoScript = NextStudioNoScript;
//# sourceMappingURL=NextStudioNoScript.cjs.map