41 lines
1.3 KiB
JavaScript
41 lines
1.3 KiB
JavaScript
/**
|
|
* @license React
|
|
* react-jsx-runtime.react-server.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
"use strict";
|
|
var React = require("react"),
|
|
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
if (!React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)
|
|
throw Error(
|
|
'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'
|
|
);
|
|
function jsxProd(type, config, maybeKey) {
|
|
var key = null;
|
|
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
void 0 !== config.key && (key = "" + config.key);
|
|
if ("key" in config) {
|
|
maybeKey = {};
|
|
for (var propName in config)
|
|
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
} else maybeKey = config;
|
|
config = maybeKey.ref;
|
|
return {
|
|
$$typeof: REACT_ELEMENT_TYPE,
|
|
type: type,
|
|
key: key,
|
|
ref: void 0 !== config ? config : null,
|
|
props: maybeKey
|
|
};
|
|
}
|
|
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
exports.jsx = jsxProd;
|
|
exports.jsxDEV = void 0;
|
|
exports.jsxs = jsxProd;
|