import { __assign } from "tslib";
import { jsx as _jsx } from "react/jsx-runtime";
import Input from '../../input';
var Search = function (_a) {
    var showSearch = _a.showSearch, classNamePrefix = _a.classNamePrefix, searchPlaceholder = _a.searchPlaceholder, i18n = _a.i18n, handleInputChange = _a.handleInputChange, inputVal = _a.inputVal;
    if (!showSearch) {
        return null;
    }
    return (_jsx("div", __assign({ className: classNamePrefix + "__search", "data-zv": 'v10.0.12' }, { children: _jsx(Input, { placeholder: searchPlaceholder || i18n.placeholder, icon: "search", onChange: handleInputChange, value: inputVal, showClear: true }, void 0) }), void 0));
};
export default Search;
