Files
med-notes/.pnpm-store/v10/files/84/363424b46f7a5e576938f73acd8fff61a1ea506f13a2e18610e04afc1ecb7e2f72e4e3a71d8ae55d9b09ac545386cfeefe648205d8b2312397be06c74ab8e7
2025-05-09 05:30:08 +02:00

42 lines
1.3 KiB
Plaintext

"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
function Asset({ tag, attrs, children }) {
switch (tag) {
case "title":
return /* @__PURE__ */ jsxRuntime.jsx("title", { ...attrs, suppressHydrationWarning: true, children });
case "meta":
return /* @__PURE__ */ jsxRuntime.jsx("meta", { ...attrs, suppressHydrationWarning: true });
case "link":
return /* @__PURE__ */ jsxRuntime.jsx("link", { ...attrs, suppressHydrationWarning: true });
case "style":
return /* @__PURE__ */ jsxRuntime.jsx(
"style",
{
...attrs,
dangerouslySetInnerHTML: { __html: children }
}
);
case "script":
if (attrs && attrs.src) {
return /* @__PURE__ */ jsxRuntime.jsx("script", { ...attrs, suppressHydrationWarning: true });
}
if (typeof children === "string")
return /* @__PURE__ */ jsxRuntime.jsx(
"script",
{
...attrs,
dangerouslySetInnerHTML: {
__html: children
},
suppressHydrationWarning: true
}
);
return null;
default:
return null;
}
}
exports.Asset = Asset;
//# sourceMappingURL=Asset.cjs.map