"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _Button = _interopRequireDefault(require("../../../Button"));
var _TextButton = _interopRequireDefault(require("../../../TextButton"));
var _Notification = require("../../Notification.constants");
var _NotificationSt = require("../../Notification.st.css.js");
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/cjs/Notification/components/ActionButton/ActionButton.tsx";
var ActionButton = props => {
  var {
    children
  } = props;
  if (props.type === 'textLink') {
    var _props$target;
    return /*#__PURE__*/_react.default.createElement(_TextButton.default, {
      className: _NotificationSt.classes.textLink,
      underline: "always",
      skin: "light",
      as: "a",
      href: props.link,
      target: (_props$target = props.target) !== null && _props$target !== void 0 ? _props$target : '_self',
      dataHook: _Notification.dataHooks.notificationCtaButton,
      onClick: props.onClick,
      __self: void 0,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 13,
        columnNumber: 7
      }
    }, children);
  }
  return /*#__PURE__*/_react.default.createElement(_Button.default, {
    className: _NotificationSt.classes.button,
    type: "button",
    size: "small",
    skin: "transparent",
    dataHook: _Notification.dataHooks.notificationCtaButton,
    onClick: props.onClick,
    __self: void 0,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 29,
      columnNumber: 5
    }
  }, children);
};
ActionButton.displayName = 'Notification.ActionButton';
var _default = exports.default = ActionButton;
//# sourceMappingURL=ActionButton.js.map