"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _SocialPostPreviewSt = require("./SocialPostPreview.st.css.js");
var _components = require("./components");
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/cjs/SocialPostPreview/SocialPostPreview.tsx";
var skinToPostComponentMap = {
  facebook: _components.FacebookPost,
  instagram: _components.InstagramPost
};

/** SocialPostPreview */
var SocialPostPreview = _ref => {
  var {
    skin = 'facebook',
    className,
    dataHook,
    caption,
    media,
    profileName,
    profileImageSrc
  } = _ref;
  var PostComponent = skinToPostComponentMap[skin];
  return /*#__PURE__*/_react.default.createElement("div", {
    "aria-hidden": "true",
    "data-hook": dataHook,
    "data-skin": skin,
    "data-profile": profileImageSrc,
    className: (0, _SocialPostPreviewSt.st)(_SocialPostPreviewSt.classes.root, {}, className),
    __self: void 0,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 24,
      columnNumber: 5
    }
  }, /*#__PURE__*/_react.default.createElement(PostComponent, {
    profileName,
    profileImageSrc,
    caption,
    media,
    __self: void 0,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 31,
      columnNumber: 7
    }
  }));
};
SocialPostPreview.displayName = 'SocialPostPreview';
var _default = exports.default = SocialPostPreview;
//# sourceMappingURL=SocialPostPreview.js.map