'use strict';

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

var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

exports.default = Footer;

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _reactIntl = require('react-intl');

var _Footer = require('../../../styles/cspace-ui/Footer.css');

var _Footer2 = _interopRequireDefault(_Footer);

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

var messages = (0, _reactIntl.defineMessages)({
  copyright: {
    'id': 'footer.copyright',
    'defaultMessage': 'Copyright \xA9 {startYear}\u2013{endYear} CollectionSpace'
  },
  release: {
    'id': 'footer.release',
    'defaultMessage': 'Release {version}'
  },
  about: {
    'id': 'footer.about',
    'defaultMessage': 'About CollectionSpace'
  },
  feedback: {
    'id': 'footer.feedback',
    'defaultMessage': 'Leave Feedback'
  }
});

function Footer() {
  var thisYear = new Date().getFullYear().toString();

  return _react2.default.createElement(
    'footer',
    { className: _Footer2.default.common },
    _react2.default.createElement(
      'ul',
      null,
      _react2.default.createElement(
        'li',
        null,
        _react2.default.createElement(_reactIntl.FormattedMessage, _extends({}, messages.copyright, {
          values: {
            startYear: '2009',
            endYear: thisYear
          }
        }))
      )
    ),
    _react2.default.createElement(
      'ul',
      null,
      _react2.default.createElement(
        'li',
        null,
        _react2.default.createElement(
          'a',
          { href: 'https://wiki.collectionspace.org/display/collectionspace/Release+5.0' },
          _react2.default.createElement(_reactIntl.FormattedMessage, _extends({}, messages.release, { values: { version: '5.0' } }))
        )
      ),
      _react2.default.createElement(
        'li',
        null,
        _react2.default.createElement(
          'a',
          { href: 'http://www.collectionspace.org' },
          _react2.default.createElement(_reactIntl.FormattedMessage, messages.about)
        )
      ),
      _react2.default.createElement(
        'li',
        null,
        _react2.default.createElement(
          'a',
          { href: 'http://www.collectionspace.org/contact' },
          _react2.default.createElement(_reactIntl.FormattedMessage, messages.feedback)
        )
      )
    )
  );
}