const require_runtime = require("../../../../../../_virtual/_rolldown/runtime.js");
const require_objectWithoutProperties = require("../../../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js");
let react = require("react");
react = require_runtime.__toESM(react);
//#region src/components/table/Table/fields/treeSelect/Show/index.tsx
const _excluded = [
	"title",
	"editable",
	"dataIndex",
	"field_type",
	"record",
	"handleSave",
	"options"
];
const Show = (props) => {
	const { title, editable, dataIndex, field_type, record, handleSave, options } = props;
	require_objectWithoutProperties._objectWithoutProperties(props, _excluded);
	const text = (0, react.useMemo)(() => {
		return record[dataIndex];
	}, [record, dataIndex]);
	const showValue = (0, react.useMemo)(() => {
		const optionDetail = options === null || options === void 0 ? void 0 : options.find((item) => item.value === text);
		return (optionDetail === null || optionDetail === void 0 ? void 0 : optionDetail.label) || text;
	}, [options, text]);
	return /* @__PURE__ */ react.default.createElement("div", { className: "" }, showValue);
};
//#endregion
exports.default = Show;
