Files
NapCatQQ/.pnpm-store/v3/files/ab/716c4b64ec97c5d2dcaa155cd27a3fc23a31a90c612bb8ceb88e7890fb758b834b61556075407f1421e43f399acddc4a9efc8b0e61198a51230d9c04dd508f
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

15 lines
409 B
Plaintext

/**
* Extractor function for a JSXFragment type value node.
*
* Returns self-closing element with correct name.
*/
export default function extractValueFromJSXFragment(value) {
// eslint-disable-next-line global-require
const getValue = require('.').default;
if (value.children.length === 0) {
return '<></>';
}
return `<>${[].concat(value.children).map((x) => getValue(x)).join('')}</>`;
}