"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = exports.AmityCommunitySetupPageMode = void 0;
var _Create = _interopRequireDefault(require("../Create"));
var _Edit = _interopRequireDefault(require("../Edit"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
let AmityCommunitySetupPageMode = exports.AmityCommunitySetupPageMode = /*#__PURE__*/function (AmityCommunitySetupPageMode) {
  AmityCommunitySetupPageMode["CREATE"] = "create";
  AmityCommunitySetupPageMode["EDIT"] = "edit";
  return AmityCommunitySetupPageMode;
}({});
const isCreatePage = props => {
  return props.mode === AmityCommunitySetupPageMode.CREATE;
};
function AmityCommunitySetupPage(props) {
  return isCreatePage(props) ? /*#__PURE__*/React.createElement(_Create.default, null) : /*#__PURE__*/React.createElement(_Edit.default, {
    community: props.community
  });
}
var _default = exports.default = AmityCommunitySetupPage;
//# sourceMappingURL=Setup.js.map