"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _Composer = _interopRequireDefault(require("../../features/post/Composer"));
var _types = require("../../types");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
function CreatePost({
  route
}) {
  const {
    community,
    targetId,
    targetType
  } = route.params;
  return /*#__PURE__*/React.createElement(_Composer.default, {
    mode: _types.AmityPostComposerMode.CREATE,
    targetId: targetId,
    targetType: targetType,
    community: community
  });
}
var _default = exports.default = CreatePost;
//# sourceMappingURL=index.js.map