"use strict";

exports.__esModule = true;
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _flex = _interopRequireDefault(require("../../components/templates/flex"));
var _icon = require("../../components/icon");
var _typography = require("../../components/typography");
var _button = require("../../components/button");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
var Header = function Header(_ref) {
  var onClose = _ref.onClose;
  return /*#__PURE__*/_react["default"].createElement(_flex["default"], {
    border: {
      side: "bottom",
      color: "selected"
    },
    justifyContent: "between",
    alignItems: "center",
    padding: [0, 0, 4, 0]
  }, /*#__PURE__*/_react["default"].createElement(_flex["default"], {
    gap: 2
  }, /*#__PURE__*/_react["default"].createElement(_icon.Icon, {
    color: "text",
    name: "insights"
  }), /*#__PURE__*/_react["default"].createElement(_typography.TextBig, {
    strong: true
  }, "Netdata News")), /*#__PURE__*/_react["default"].createElement(_button.Button, {
    flavour: "borderless",
    neutral: true,
    icon: "x",
    title: "close news",
    onClick: onClose
  }));
};
var _default = exports["default"] = Header;