"use strict";

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

var _react = _interopRequireDefault(require("react"));

var _propTypes = _interopRequireDefault(require("prop-types"));

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

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

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

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

function BackLink(props) {
  const {
    to,
    children
  } = props;
  return /*#__PURE__*/_react.default.createElement(_reactRouterDom.Link, {
    className: _BackLink.default.common,
    to: to
  }, children);
}

BackLink.propTypes = propTypes;