import _extends from "@babel/runtime/helpers/extends";
import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
import React, { Component } from 'react';
import "./index.scss";

// export type GiftProps = {}
var Gift = /*#__PURE__*/function (_Component) {
  _inheritsLoose(Gift, _Component);
  function Gift() {
    return _Component.apply(this, arguments) || this;
  }
  var _proto = Gift.prototype;
  _proto.render = function render() {
    var _this$props = this.props,
      style = _this$props.style,
      btnText = _this$props.btnText,
      btnFn = _this$props.btnFn;
    return /*#__PURE__*/React.createElement("div", {
      className: "gift"
    }, /*#__PURE__*/React.createElement("img", _extends({
      src: "https://img.maimairen.com/low-code/components/blind-box/gift.png",
      className: "gift-icon"
    }, style, {
      alt: "\u793C\u5305"
    })), /*#__PURE__*/React.createElement("div", {
      className: "gift-button",
      onClick: btnFn
    }, btnText));
  };
  return Gift;
}(Component);
export { Gift as default };