var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.SimpleDialog=void 0;var _react=_interopRequireDefault(require("react"));var _reactNativePaper=require("react-native-paper");var _themed=require("@brightlayer-ui/react-native-components/themed");var _reactAuthShared=require("@brightlayer-ui/react-auth-shared");var _jsxFileName="/home/circleci/login-workflow/login-workflow/src/components/SimpleDialog.tsx";var SimpleDialog=function SimpleDialog(props){var visible=props.visible,onDismiss=props.onDismiss,title=props.title,bodyText=props.bodyText;var _useLanguageLocale=(0,_reactAuthShared.useLanguageLocale)(),t=_useLanguageLocale.t;return _react.default.createElement(_reactNativePaper.Portal,{__source:{fileName:_jsxFileName,lineNumber:37,columnNumber:9}},_react.default.createElement(_reactNativePaper.Dialog,{visible:visible,dismissable:false,style:{minWidth:250,maxWidth:600,alignSelf:'center'},__source:{fileName:_jsxFileName,lineNumber:38,columnNumber:13}},_react.default.createElement(_reactNativePaper.Dialog.Title,{__source:{fileName:_jsxFileName,lineNumber:40,columnNumber:17}},title),_react.default.createElement(_reactNativePaper.Dialog.Content,{__source:{fileName:_jsxFileName,lineNumber:41,columnNumber:17}},_react.default.createElement(_reactNativePaper.Paragraph,{__source:{fileName:_jsxFileName,lineNumber:42,columnNumber:21}},bodyText!==null&&bodyText!==void 0?bodyText:t('blui:MESSAGES.REQUEST_ERROR'))),_react.default.createElement(_reactNativePaper.Dialog.Actions,{__source:{fileName:_jsxFileName,lineNumber:44,columnNumber:17}},_react.default.createElement(_themed.ThemedButton,{uppercase:false,onPress:function onPress(){onDismiss();},__source:{fileName:_jsxFileName,lineNumber:45,columnNumber:21}},t('blui:ACTIONS.OKAY')))));};exports.SimpleDialog=SimpleDialog;
//# sourceMappingURL=SimpleDialog.js.map