import { _objectWithoutProperties } from "../../../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js";
import { getValueByKeys } from "../../utils/index.js";
import React from "react";
import { Switch } from "antd";
//#region src/components/table/Table/fields/pSwitch/Show/index.tsx
const _excluded = [
	"title",
	"editable",
	"dataIndex",
	"field_type",
	"record",
	"handleSave",
	"onChange"
];
const Show = (props) => {
	const { title, editable, dataIndex, field_type, record, handleSave, onChange } = props;
	_objectWithoutProperties(props, _excluded);
	return /* @__PURE__ */ React.createElement("div", { className: "" }, /* @__PURE__ */ React.createElement(Switch, {
		checked: getValueByKeys(record, dataIndex),
		onChange: (e) => {
			onChange && onChange(e, record);
		}
	}));
};
//#endregion
export { Show as default };
