/**
 * 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.
 */

import { pkg } from "../../../../../settings.js";
import * as React$1 from "react";
import PropTypes from "prop-types";
import { Search } from "@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 = `${pkg.prefix}--datagrid`;
const Actions = ({ searchText, setSearchText, findColumnPlaceholderLabel }) => {
	return /* @__PURE__ */ React$1.createElement("div", { className: `${blockClass}__customize-columns-tearsheet--actions` }, /* @__PURE__ */ React$1.createElement(Search, {
		placeholder: findColumnPlaceholderLabel,
		value: searchText,
		size: "lg",
		labelText: findColumnPlaceholderLabel,
		onChange: (e) => {
			setSearchText(e.target.value);
		}
	}));
};
Actions.propTypes = {
	columns: PropTypes.array.isRequired,
	findColumnPlaceholderLabel: PropTypes.string,
	originalColumnDefinitions: PropTypes.array.isRequired,
	resetToDefaultLabel: PropTypes.string,
	searchText: PropTypes.string.isRequired,
	setColumnsObject: PropTypes.func.isRequired,
	setSearchText: PropTypes.func.isRequired
};

//#endregion
export { Actions as default };