"use strict";

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

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

var _reactBootstrap = require("react-bootstrap");

var _styledComponents = _interopRequireDefault(require("styled-components"));

var _ui = require("../../util/ui");

var _styled = require("./styled");

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

const StyledButton = (0, _styledComponents.default)(_reactBootstrap.Button)`
  display: block;
  padding: 0;
`;
/**
 * Back link that navigates to the previous location in browser history.
 */

const BackLink = () => /*#__PURE__*/_react.default.createElement(StyledButton, {
  bsStyle: "link",
  onClick: _ui.navigateBack
}, /*#__PURE__*/_react.default.createElement(_styled.IconWithMargin, {
  name: "arrow-left"
}), "Back");

var _default = BackLink;
exports.default = _default;
module.exports = exports.default;

//# sourceMappingURL=back-link.js