const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
let react = require("react");
react = require_runtime.__toESM(react);
let _pisell_utils = require("@pisell/utils");
require("./ReadPretty.less");
//#region src/components/dataSourceComponents/fields/Input.Json/ReadPretty.tsx
const JsonReadPretty = (props) => {
	if ((0, _pisell_utils.isString)(props.value)) return /* @__PURE__ */ react.default.createElement("pre", { className: "pisell-json-read-pretty" }, props.value);
	else if ((0, _pisell_utils.isPlainObject)(props.value)) return /* @__PURE__ */ react.default.createElement("pre", null, JSON.stringify(props.value, null, 2));
	return null;
};
//#endregion
exports.default = JsonReadPretty;
