'use strict';

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

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _propTypes = require('prop-types');

var _propTypes2 = _interopRequireDefault(_propTypes);

var _reactRouterDom = require('react-router-dom');

var _BackLink = require('../../../styles/cspace-ui/BackLink.css');

var _BackLink2 = _interopRequireDefault(_BackLink);

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

const propTypes = {
  to: _propTypes2.default.string,
  children: _propTypes2.default.node
};

function BackLink(props) {
  const to = props.to,
        children = props.children;


  return _react2.default.createElement(
    _reactRouterDom.Link,
    { className: _BackLink2.default.common, to: to },
    children
  );
}

BackLink.propTypes = propTypes;