const require_runtime = require("../../../../../../../_virtual/_rolldown/runtime.js");
const require_index = require("../../../../../../../locales/index.js");
const require_status = require("../../../../../status.js");
let react = require("react");
react = require_runtime.__toESM(react);
let antd = require("antd");
require("./index.less");
//#region src/components/table/Actions/component/ExportImport/components/ExportTable/index.tsx
const ExportTable = (props) => {
	const { onChange, exportImport } = props;
	const { selectLists } = exportImport;
	const [type, setType] = (0, react.useState)(require_status.defaultOptions.exportType);
	return /* @__PURE__ */ react.default.createElement("div", { className: "bulk-export-tool" }, /* @__PURE__ */ react.default.createElement("div", { className: "header" }, require_index.getText("table-action-export-import-export-range")), /* @__PURE__ */ react.default.createElement(antd.Radio.Group, {
		onChange: (e) => {
			setType(e.target.value);
			onChange(e.target.value);
		},
		value: type
	}, /* @__PURE__ */ react.default.createElement(antd.Space, { direction: "vertical" }, /* @__PURE__ */ react.default.createElement(antd.Radio, { value: "current-page" }, require_index.getText("table-action-export-import-current-page")), /* @__PURE__ */ react.default.createElement(antd.Radio, { value: "all-records" }, require_index.getText("table-action-export-import-all-records")), /* @__PURE__ */ react.default.createElement(antd.Radio, {
		value: "selected-records",
		disabled: !(selectLists === null || selectLists === void 0 ? void 0 : selectLists.length)
	}, `${require_index.getText("table-action-export-import-selected-records")} (${require_index.getText("table-action-export-import-selected")} ${require_index.getText("table-action-export-import-item")((selectLists === null || selectLists === void 0 ? void 0 : selectLists.length) || 0)})`))));
};
//#endregion
exports.default = ExportTable;
