@carbon/ibm-cloud-cognitive-cdai
Version:
Carbon for Cloud & Cognitive CD&AI UI components
31 lines (30 loc) • 1.12 kB
JavaScript
import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
var _excluded = ["className"];
//
// Copyright IBM Corp. 2020, 2020
//
// 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 React from 'react';
import { TableToolbarSearch } from 'carbon-components-react';
import { idePrefix } from '../../globals/js/settings';
import PropTypes from 'prop-types';
var IdeTableToolbarSearch = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
var className = _ref.className,
otherProps = _objectWithoutProperties(_ref, _excluded);
var searchClasses = "".concat(idePrefix, "-table-toolbar-search");
if (className) {
searchClasses += ' ' + className;
}
return /*#__PURE__*/React.createElement(TableToolbarSearch, _extends({
ref: ref,
searchContainerClass: searchClasses
}, otherProps));
});
IdeTableToolbarSearch.propTypes = {
/** custom class name */
className: PropTypes.string
};
export default IdeTableToolbarSearch;