react-jsx-runtime.react-server.production.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /**
  2. * @license React
  3. * react-jsx-runtime.react-server.production.js
  4. *
  5. * Copyright (c) Meta Platforms, Inc. and affiliates.
  6. *
  7. * This source code is licensed under the MIT license found in the
  8. * LICENSE file in the root directory of this source tree.
  9. */
  10. "use strict";
  11. var React = require("react"),
  12. REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
  13. REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
  14. if (!React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)
  15. throw Error(
  16. '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.'
  17. );
  18. function jsxProd(type, config, maybeKey) {
  19. var key = null;
  20. void 0 !== maybeKey && (key = "" + maybeKey);
  21. void 0 !== config.key && (key = "" + config.key);
  22. if ("key" in config) {
  23. maybeKey = {};
  24. for (var propName in config)
  25. "key" !== propName && (maybeKey[propName] = config[propName]);
  26. } else maybeKey = config;
  27. config = maybeKey.ref;
  28. return {
  29. $$typeof: REACT_ELEMENT_TYPE,
  30. type: type,
  31. key: key,
  32. ref: void 0 !== config ? config : null,
  33. props: maybeKey
  34. };
  35. }
  36. exports.Fragment = REACT_FRAGMENT_TYPE;
  37. exports.jsx = jsxProd;
  38. exports.jsxDEV = void 0;
  39. exports.jsxs = jsxProd;