import React from "react";
import { isPlainObject, isString } from "@pisell/utils";
import "./ReadPretty.less";
//#region src/components/dataSourceComponents/fields/Input.Json/ReadPretty.tsx
const JsonReadPretty = (props) => {
	if (isString(props.value)) return /* @__PURE__ */ React.createElement("pre", { className: "pisell-json-read-pretty" }, props.value);
	else if (isPlainObject(props.value)) return /* @__PURE__ */ React.createElement("pre", null, JSON.stringify(props.value, null, 2));
	return null;
};
//#endregion
export { JsonReadPretty as default };
