text: import React from "react";
  import { Button } from "antd";
  import { EmailSubscription } from "./EmailSubscription";
  import { LogEngagementEvent } from "../Logging";
  
  export class CallToActionButton extends React.Component {
    render() {
      var place = this.props.place;
      var size = this.props.size;
      const className =
        size === "large" ? "large-primary-button" : "primary-button";
      return (
        <div key={place.placeID}>
          {place.giftCardURL && (
            <Button
              shape="round"
              size={size}
              className={className}
              type="default"
              onClick={event => {
                LogEngagementEvent(
                  "user-click",
                  "get-gift-card-" + size,
                  place.placeID
                );
                window.open(place.giftCardURL);
              }}
            >
              Hacé tu compra anticipada
            </Button>
          )}
          {!place.giftCardURL && (
            <EmailSubscription place={this.props.place} buttonClass={className} />
          )}
        </div>
      );
    }
  }
  