"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.SearchMessage = void 0;

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

var _components = require("@looker/components");

var _Error = require("@styled-icons/material/Error");

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

var SearchMessage = _ref => {
  var {
    search
  } = _ref;
  return _react.default.createElement(_react.default.Fragment, null, search && !search.ok && _react.default.createElement(_components.Flex, {
    pl: "large",
    pr: "large",
    alignItems: "center"
  }, _react.default.createElement(_components.Heading, {
    as: "h4",
    color: "critical"
  }, _react.default.createElement(_components.Icon, {
    key: "resultIcon",
    icon: _react.default.createElement(_Error.Error, null),
    size: "xxsmall",
    color: "critical"
  }), search.message)));
};

exports.SearchMessage = SearchMessage;
//# sourceMappingURL=SearchMessage.js.map