import { _objectWithoutProperties } from "../../../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js";
import React, { useMemo } from "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;
	_objectWithoutProperties(props, _excluded);
	const text = useMemo(() => {
		return record[dataIndex];
	}, [record, dataIndex]);
	const showValue = 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.createElement("div", { className: "" }, showValue);
};
//#endregion
export { Show as default };
