UNPKG

1.32 kBJavaScriptView Raw
1/**
2 * @license React
3 * react-jsx-dev-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
11"use strict";
12var React = require("react"),
13 REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
14 REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
15if (!React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)
16 throw Error(
17 '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.'
18 );
19function jsxProd(type, config, maybeKey) {
20 var key = null;
21 void 0 !== maybeKey && (key = "" + maybeKey);
22 void 0 !== config.key && (key = "" + config.key);
23 if ("key" in config) {
24 maybeKey = {};
25 for (var propName in config)
26 "key" !== propName && (maybeKey[propName] = config[propName]);
27 } else maybeKey = config;
28 config = maybeKey.ref;
29 return {
30 $$typeof: REACT_ELEMENT_TYPE,
31 type: type,
32 key: key,
33 ref: void 0 !== config ? config : null,
34 props: maybeKey
35 };
36}
37exports.Fragment = REACT_FRAGMENT_TYPE;
38exports.jsx = jsxProd;
39exports.jsxDEV = void 0;
40exports.jsxs = jsxProd;