var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.ErrorState=void 0;var _react=_interopRequireDefault(require("react"));var _reactAuthShared=require("@brightlayer-ui/react-auth-shared");var _reactNativeComponents=require("@brightlayer-ui/react-native-components");var _reactNative=require("react-native");var _reactNativePaper=require("react-native-paper");var _themed=require("@brightlayer-ui/react-native-components/themed");var _jsxFileName="/home/circleci/login-workflow/login-workflow/src/components/ErrorState.tsx";var ReportIcon={name:'report'};var makeContainerStyles=function makeContainerStyles(){return _reactNative.StyleSheet.create({containerMargins:{marginHorizontal:16},spaceBetween:{flexGrow:1,justifyContent:'space-between'}});};var makeStyles=function makeStyles(){return _reactNative.StyleSheet.create({sideBySideButtons:{flexDirection:'row',justifyContent:'space-between',alignItems:'center',paddingVertical:8}});};var ErrorState=function ErrorState(props){var theme=(0,_reactNativePaper.useTheme)(props.theme);var title=props.title,bodyText=props.bodyText,icon=props.icon,_onPress=props.onPress;var _useLanguageLocale=(0,_reactAuthShared.useLanguageLocale)(),t=_useLanguageLocale.t;var containerStyles=makeContainerStyles();var styles=makeStyles();return _react.default.createElement(_reactNative.SafeAreaView,{style:[containerStyles.spaceBetween,{backgroundColor:theme.colors.surface}],__source:{fileName:_jsxFileName,lineNumber:75,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{flex:1},__source:{fileName:_jsxFileName,lineNumber:76,columnNumber:13}},_react.default.createElement(_reactNativeComponents.EmptyState,{IconClass:icon!==null&&icon!==void 0?icon:ReportIcon,iconColor:theme.colors.error,title:title!==null&&title!==void 0?title:t('blui:MESSAGES.FAILURE'),description:bodyText!==null?t(bodyText):t('blui:MESSAGES.REQUEST_ERROR'),__source:{fileName:_jsxFileName,lineNumber:77,columnNumber:17}})),_react.default.createElement(_reactNative.View,{style:[styles.sideBySideButtons,containerStyles.containerMargins],__source:{fileName:_jsxFileName,lineNumber:86,columnNumber:13}},_react.default.createElement(_themed.ThemedButton,{uppercase:false,style:{width:'100%',alignSelf:'flex-end'},mode:'contained',onPress:function onPress(){_onPress();},__source:{fileName:_jsxFileName,lineNumber:87,columnNumber:17}},t('blui:ACTIONS.FINISH'))));};exports.ErrorState=ErrorState;
//# sourceMappingURL=ErrorState.js.map