import CreateCommunity from '../Create';
import EditCommunity from '../Edit';
export let 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(CreateCommunity, null) : /*#__PURE__*/React.createElement(EditCommunity, {
    community: props.community
  });
}
export default AmityCommunitySetupPage;
//# sourceMappingURL=Setup.js.map