C:\Users\MSI\Desktop\frontend\coresync-react

This commit is contained in:
yarik committed 2025-08-05 00:16:33 +03:00
commit d8dad2312a
8617 files changed
+1017114

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = extractValueFromJSXFragment;
/**
* Extractor function for a JSXFragment type value node.
*
* Returns self-closing element with correct name.
*/
function extractValueFromJSXFragment(value) {
// eslint-disable-next-line global-require
var getValue = require('.').default;
if (value.children.length === 0) {
return '<></>';
}
return '<>' + [].concat(value.children).map(function (x) {
return getValue(x);
}).join('') + '</>';
}