"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _react = _interopRequireDefault(require("react"));
var _storybookSnapper = require("storybook-snapper");
var _SocialButton = _interopRequireDefault(require("../SocialButton"));
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/cjs/SocialButton/test/SocialButton.visual.jsx",
  _this = void 0;
var icons = ['facebook', 'instagram', 'twitter', 'linkedin', 'pinterest', 'youtube', 'xcorp'];
var tests = [{
  describe: 'disabled',
  its: [{
    it: 'true',
    props: {
      icon: 'facebook',
      disabled: true
    }
  }]
}, {
  describe: 'text',
  its: [{
    it: 'undefined',
    props: {
      icon: 'facebook'
    }
  }, {
    it: 'text',
    props: {
      icon: 'facebook',
      text: 'Share me please!'
    }
  }]
}, {
  describe: 'icons',
  its: icons.map(function (icon) {
    return {
      it: icon,
      props: {
        icon: icon
      }
    };
  })
}];
(0, _storybookSnapper.visualize)(_SocialButton["default"].displayName, function () {
  tests.forEach(function (_ref) {
    var describe = _ref.describe,
      its = _ref.its;
    (0, _storybookSnapper.story)(describe, function () {
      its.map(function (_ref2) {
        var it = _ref2.it,
          props = _ref2.props;
        return (0, _storybookSnapper.snap)(it, function () {
          return /*#__PURE__*/_react["default"].createElement(_SocialButton["default"], (0, _extends2["default"])({}, props, {
            __self: _this,
            __source: {
              fileName: _jsxFileName,
              lineNumber: 55,
              columnNumber: 49
            }
          }));
        });
      });
    });
  });
});