"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _base = _interopRequireDefault(require("@emotion/styled/base"));
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _styles = require("./styles.js");
var _Icon = _interopRequireDefault(require("./Icon"));
var _react2 = require("@emotion/react");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
const GoBackButtonStyle = /*#__PURE__*/(0, _base.default)("a", {
  target: "e1sptrq41",
  label: "GoBackButtonStyle"
})(process.env.NODE_ENV === "production" ? {
  name: "1d6fxhx",
  styles: "display:flex;align-items:center;margin-top:50px;padding:10px;font-size:14px"
} : {
  name: "1d6fxhx",
  styles: "display:flex;align-items:center;margin-top:50px;padding:10px;font-size:14px",
  map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Hb0JhY2tCdXR0b24uanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBT2tDIiwiZmlsZSI6Ii4uLy4uL3NyYy9Hb0JhY2tCdXR0b24uanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20g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TtcbiAgfVxufVxuIl19 */",
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
});
const ButtonText = /*#__PURE__*/(0, _base.default)("p", {
  target: "e1sptrq40",
  label: "ButtonText"
})("color:", _styles.colorsRaw.gray, ";margin:0 10px;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Hb0JhY2tCdXR0b24uanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBaUIyQiIsImZpbGUiOiIuLi8uLi9zcmMvR29CYWNrQnV0dG9uLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0JztcbmltcG9ydCBQcm9wVHlwZXMgZnJvbSAncHJvcC10eXBlcyc7XG5cbmltcG9ydCB7IGNvbG9yc1JhdyB9IGZyb20gJy4vc3R5bGVzLmpzJztcbmltcG9ydCBJY29uIGZyb20gJy4vSWNvbic7XG5cbmNvbnN0IEdvQmFja0J1dHRvblN0eWxlID0gc3R5bGVkLmFgXG4gIGRpc3BsYXk6IGZsZXg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG5cbiAgbWFyZ2luLXRvcDogNTBweDtcbiAgcGFkZGluZzogMTBweDtcblxuICBmb250LXNpemU6IDE0cHg7XG5gO1xuXG5jb25zdCBCdXR0b25UZXh0ID0gc3R5bGVkLnBgXG4gIGNvbG9yOiAke2NvbG9yc1Jhdy5ncmF5fTtcbiAgbWFyZ2luOiAwIDEwcHg7XG5gO1xuXG5leHBvcnQgZGVmYXVsdCBjbGFzcyBHb0JhY2tCdXR0b24gZXh0ZW5kcyBSZWFjdC5Db21wb25lbnQge1xuICBzdGF0aWMgcHJvcFR5cGVzID0ge1xuICAgIGhyZWY6IFByb3BUeXBlcy5zdHJpbmcuaXNSZXF1aXJlZCxcbiAgICB0OiBQcm9wVHlwZXMuZnVuYy5pc1JlcXVpcmVkLFxuICB9O1xuXG4gIHJlbmRlcigpIHtcbiAgICBjb25zdCB7IGhyZWYsIHQgfSA9IHRoaXMucHJvcHM7XG5cbiAgICByZXR1cm4gKFxuICAgICAgPEdvQmFja0J1dHRvblN0eWxlIGhyZWY9e2hyZWZ9PlxuICAgICAgICA8SWNvbiB0eXBlPVwiYXJyb3dcIiBzaXplPVwic21hbGxcIiAvPlxuICAgICAgICA8QnV0dG9uVGV4dD57dCgndWkuZGVmYXVsdC5nb0JhY2tUb1NpdGUnKX08L0J1dHRvblRleHQ+XG4gICAgICA8L0dvQmFja0J1dHRvblN0eWxlPlxuICAgICk7XG4gIH1cbn1cbiJdfQ== */"));
class GoBackButton extends _react.default.Component {
  render() {
    const {
      href,
      t
    } = this.props;
    return (0, _react2.jsx)(GoBackButtonStyle, {
      href: href
    }, (0, _react2.jsx)(_Icon.default, {
      type: "arrow",
      size: "small"
    }), (0, _react2.jsx)(ButtonText, null, t('ui.default.goBackToSite')));
  }
}
exports.default = GoBackButton;
_defineProperty(GoBackButton, "propTypes", {
  href: _propTypes.default.string.isRequired,
  t: _propTypes.default.func.isRequired
});