"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.SearchableCollectionContent = void 0;
var _react = _interopRequireDefault(require("react"));
var _mobxReactLite = require("mobx-react-lite");
var _CollectionContext = require("../CollectionContext");
var _designSystem = require("@wix/design-system");
var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/cairo/dist/cjs/components/SearchableCollectionContent/SearchableCollectionContent.tsx";
const SearchableCollectionContent = exports.SearchableCollectionContent = (0, _mobxReactLite.observer)(function SearchableCollectionContent(props) {
  const {
    children,
    dataHook = 'searchable-collection-content'
  } = props;
  const collection = (0, _CollectionContext.useCollectionContext)();
  const {
    originQuery: {
      search
    }
  } = collection;
  return /*#__PURE__*/_react.default.createElement(_designSystem.Highlighter, {
    match: search,
    emphasize: "background",
    dataHook: dataHook,
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 32,
      columnNumber: 7
    }
  }, children);
});
//# sourceMappingURL=SearchableCollectionContent.js.map