"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _styles = require("./styles");
var _EngagementActions = _interopRequireDefault(require("../EngagementActions/EngagementActions"));
var _AmityPostContentComponentStyle = require("../../../../enums/AmityPostContentComponentStyle");
var _enums = require("../../../../enums");
var _CommentList = _interopRequireDefault(require("../../../../components/Social/CommentList/CommentList"));
var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
function AmityPostEngagementContentComponent({
  postId,
  targetId,
  targetType,
  postType = 'post'
}) {
  const {
    styles
  } = (0, _styles.useStyles)();
  return /*#__PURE__*/React.createElement(_reactNativeSafeAreaContext.SafeAreaView, {
    style: styles.container,
    edges: ['top']
  }, /*#__PURE__*/React.createElement(_EngagementActions.default, {
    postId: postId,
    targetId: targetId,
    targetType: targetType,
    pageId: _enums.PageID.post_detail_page,
    componentId: _enums.ComponentID.post_content,
    AmityPostContentComponentStyle: _AmityPostContentComponentStyle.AmityPostContentComponentStyleEnum.detail
  }), /*#__PURE__*/React.createElement(_CommentList.default, {
    postId: postId,
    postType: postType,
    withAvatar: true
  }));
}
var _default = exports.default = AmityPostEngagementContentComponent;
//# sourceMappingURL=EngagementContent.js.map