"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = SearchResult;

var _react = _interopRequireDefault(require("react"));

var Components = _interopRequireWildcard(require("@patternplate/components"));

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function SearchResult(props) {
  return _react.default.createElement(Components.Search.SearchResult, {
    active: props.item.id === props.activeId,
    href: props.item.href,
    id: props.item.id,
    index: props.index,
    icon: props.item.manifest.icon || props.item.type,
    name: props.item.manifest.displayName,
    key: props.item.id,
    onActivate: props.onActivate,
    onScrollRequest: props.onScrollRequest,
    type: props.type
  });
}
//# sourceMappingURL=search-result.js.map