"use client";
let react_jsx_runtime = require("react/jsx-runtime");
//#region src/components/json-tree-view/json-tree-view-value-node.tsx
var JsonTreeViewValueNode = (props) => {
	const { node, renderValue } = props;
	if (node.type === "text") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: renderValue?.(node) ?? node.value });
	const Element = node.tagName;
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Element, {
		"data-root": node.properties.root ? "" : void 0,
		"data-type": node.properties.nodeType,
		"data-kind": node.properties.kind,
		suppressHydrationWarning: true,
		children: node.children.map((child, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(JsonTreeViewValueNode, {
			node: child,
			renderValue
		}, index))
	});
};
//#endregion
exports.JsonTreeViewValueNode = JsonTreeViewValueNode;
