/**
 * Copyright IBM Corp. 2020, 2026
 *
 * This source code is licensed under the Apache-2.0 license found in the
 * LICENSE file in the root directory of this source tree.
 */

const require_runtime = require("../../../../../_virtual/_rolldown/runtime.js");
const require_settings = require("../../../../../settings.js");
let react = require("react");
react = require_runtime.__toESM(react);
let prop_types = require("prop-types");
prop_types = require_runtime.__toESM(prop_types);
let _carbon_react = require("@carbon/react");
//#region src/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.jsx
/**
* Copyright IBM Corp. 2022, 2023
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
const blockClass = `${require_settings.pkg.prefix}--datagrid`;
const Actions = ({ searchText, setSearchText, findColumnPlaceholderLabel }) => {
	return /* @__PURE__ */ react.createElement("div", { className: `${blockClass}__customize-columns-tearsheet--actions` }, /* @__PURE__ */ react.createElement(_carbon_react.Search, {
		placeholder: findColumnPlaceholderLabel,
		value: searchText,
		size: "lg",
		labelText: findColumnPlaceholderLabel,
		onChange: (e) => {
			setSearchText(e.target.value);
		}
	}));
};
Actions.propTypes = {
	columns: prop_types.default.array.isRequired,
	findColumnPlaceholderLabel: prop_types.default.string,
	originalColumnDefinitions: prop_types.default.array.isRequired,
	resetToDefaultLabel: prop_types.default.string,
	searchText: prop_types.default.string.isRequired,
	setColumnsObject: prop_types.default.func.isRequired,
	setSearchText: prop_types.default.func.isRequired
};
//#endregion
exports.default = Actions;
