import React from "react";
import Flex from "../../components/templates/flex";
import { Icon } from "../../components/icon";
import { TextBig } from "../../components/typography";
import { Button } from "../../components/button";
var Header = function Header(_ref) {
  var onClose = _ref.onClose;
  return /*#__PURE__*/React.createElement(Flex, {
    border: {
      side: "bottom",
      color: "selected"
    },
    justifyContent: "between",
    alignItems: "center",
    padding: [0, 0, 4, 0]
  }, /*#__PURE__*/React.createElement(Flex, {
    gap: 2
  }, /*#__PURE__*/React.createElement(Icon, {
    color: "text",
    name: "insights"
  }), /*#__PURE__*/React.createElement(TextBig, {
    strong: true
  }, "Netdata News")), /*#__PURE__*/React.createElement(Button, {
    flavour: "borderless",
    neutral: true,
    icon: "x",
    title: "close news",
    onClick: onClose
  }));
};
export default Header;