"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.CustomColumnsSearch = void 0;
exports._CustomColumnsSearch = _CustomColumnsSearch;
var _designSystem = require("@wix/design-system");
var _react = _interopRequireDefault(require("react"));
var _mobxReactLite = require("mobx-react-lite");
var _react2 = require("@wix/bex-core/react");
var _jsxFileName = "/home/builduser/work/db7ea24852bc3350/packages/cairo/dist/cjs/components/CustomColumnsPanel/CustomColumnsSearch.tsx";
function _CustomColumnsSearch({
  state
}) {
  const {
    translate: t
  } = (0, _react2.useWixPatternsContainer)();
  return /*#__PURE__*/_react.default.createElement(_designSystem.Search, {
    dataHook: "custom-columns-search",
    size: "small",
    value: state.searchValue,
    onChange: e => {
      state.setSearchValue(e.target.value);
    },
    onClear: () => {
      state.setSearchValue('');
    },
    placeholder: t('cairo.table.custom-columns.dragAndDrop.search-placeholder'),
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 18,
      columnNumber: 5
    }
  });
}
const CustomColumnsSearch = exports.CustomColumnsSearch = (0, _mobxReactLite.observer)(_CustomColumnsSearch);
//# sourceMappingURL=CustomColumnsSearch.js.map