"use strict";

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

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

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

var _icon = require("../../icon");

var _focus = require("../../../mixins/focus");

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

var StyledButton = _styledComponents["default"].button.withConfig({
  displayName: "StyledButton",
  componentId: "sc-1wqozc8-0"
})(["background:none;border:none;box-sizing:border-box;padding:8px;margin:0;border-radius:", ";", " &:not([disabled]){&:hover{background-color:", ";}&:active{background-color:", ";}}", "{box-shadow:", ",", " ", ";}"], _focus.focusedCircleRadius, (0, _focus.getBaseFocusState)({}), _focus.hoverBackgroundColor, _focus.activeBackgroundColor, _focus.FOCUS_VISIBLE_SELECTOR, _focus.focusedBoxShadow, _focus.focusedBorderShadow, _focus.focusedBorderColor);

var BackButton = function BackButton(_ref) {
  var disabled = _ref.disabled,
      ariaLabel = _ref.ariaLabel,
      onClick = _ref.onClick;
  return /*#__PURE__*/_react["default"].createElement(StyledButton, {
    type: "button",
    "aria-label": ariaLabel,
    onClick: onClick,
    disabled: disabled
  }, /*#__PURE__*/_react["default"].createElement(_icon.ArrowBack, {
    disabled: disabled
  }));
};

exports.BackButton = BackButton;
BackButton.displayName = 'BackButton';