import { getText } from "../../../../../../../locales/index.js";
import { defaultOptions } from "../../../../../status.js";
import React, { useState } from "react";
import { Radio, Space } from "antd";
import "./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] = useState(defaultOptions.exportType);
	return /* @__PURE__ */ React.createElement("div", { className: "bulk-export-tool" }, /* @__PURE__ */ React.createElement("div", { className: "header" }, getText("table-action-export-import-export-range")), /* @__PURE__ */ React.createElement(Radio.Group, {
		onChange: (e) => {
			setType(e.target.value);
			onChange(e.target.value);
		},
		value: type
	}, /* @__PURE__ */ React.createElement(Space, { direction: "vertical" }, /* @__PURE__ */ React.createElement(Radio, { value: "current-page" }, getText("table-action-export-import-current-page")), /* @__PURE__ */ React.createElement(Radio, { value: "all-records" }, getText("table-action-export-import-all-records")), /* @__PURE__ */ React.createElement(Radio, {
		value: "selected-records",
		disabled: !(selectLists === null || selectLists === void 0 ? void 0 : selectLists.length)
	}, `${getText("table-action-export-import-selected-records")} (${getText("table-action-export-import-selected")} ${getText("table-action-export-import-item")((selectLists === null || selectLists === void 0 ? void 0 : selectLists.length) || 0)})`))));
};
//#endregion
export { ExportTable as default };
