the-forest/client/node_modules/jsx-ast-utils/lib/values/JSXText.js

14 lines
301 B
JavaScript
Raw Normal View History

2024-09-17 20:35:18 -04:00
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = extractValueFromJSXText;
/**
* Extractor function for a JSXText type value node.
*
* Returns self-closing element with correct name.
*/
function extractValueFromJSXText(value) {
return value.raw;
}