'use strict';

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

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

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
var Head__default = /*#__PURE__*/_interopDefaultLegacy(Head);

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


  return React__default['default'].createElement(
    Head__default['default'],
    null,
    title && React__default['default'].createElement(
      'title',
      null,
      title
    ),
    keyword && React__default['default'].createElement('meta', { name: 'keywords', content: keyword }),
    description && React__default['default'].createElement('meta', { name: 'description', content: description, key: 'description' }),
    !isLiveSite && React__default['default'].createElement('meta', { name: 'robots', content: 'noindex, nofollow' }),
    canonicalUrl && React__default['default'].createElement('link', { rel: 'canonical', href: canonicalUrl, key: 'canonical' })
  );
};

var Header$1 = React__default['default'].memo(Header);

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