'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }

var React = require('react');
var React__default = _interopDefault(React);
var Head = _interopDefault(require('next/head'));

var Header = function Header(props) {
  var title = props.title,
      keyword = props.keyword,
      description = props.description,
      isLiveSite = props.isLiveSite;


  return React__default.createElement(
    Head,
    null,
    title && React__default.createElement(
      'title',
      null,
      title
    ),
    keyword && React__default.createElement('meta', { name: 'keywords', content: keyword }),
    description && React__default.createElement('meta', { name: 'description', content: description }),
    !isLiveSite && React__default.createElement('meta', { name: 'robots', content: 'noindex, nofollow' })
  );
};

var Header$1 = React__default.memo(Header);

exports.Header = Header;
exports.default = Header$1;
