"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.SupportSMSLink = exports.SupportLink = exports.Link = exports.supportPhoneFormatted = exports.supportPhone = exports.supportEmail = void 0;

var _preact = require("preact");

var _classnames = _interopRequireDefault(require("classnames"));

var _getStyledComponent = _interopRequireDefault(require("./utils/get-styled-component"));

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

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

const supportEmail = 'support@xchart.com';
exports.supportEmail = supportEmail;
const supportPhone = '+18884823450';
exports.supportPhone = supportPhone;
const supportPhoneFormatted = '(888) 482-3450';
exports.supportPhoneFormatted = supportPhoneFormatted;
const Link = (0, _getStyledComponent.default)({
  baseClasses: 'link',
  tagName: 'a',
  options: {
    white: false,
    underline: true
  },
  fn: ({
    underline,
    white
  }) => (0, _classnames.default)(underline ? 'underline' : 'no-underline', white ? 'white hover-lightest-blue' : 'dark-blue hover-blue')
});
exports.Link = Link;

const SupportLink = props => (0, _preact.h)(Link, _extends({
  href: "mailto:".concat(supportEmail)
}, props), supportEmail);

exports.SupportLink = SupportLink;

const SupportSMSLink = props => (0, _preact.h)(Link, _extends({
  href: "sms:".concat(supportPhone)
}, props), supportPhoneFormatted);

exports.SupportSMSLink = SupportSMSLink;