var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.Notification=void 0;var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _native=require("@react-navigation/native");var _mobxReactLite=require("mobx-react-lite");var _CommonStyles=require("../CommonStyles");var _icons=require("../../assets/icons");var _MText=require("../../components/MText");var _utils=require("../../utils");var _store=_interopRequireDefault(require("./store"));var _moment=_interopRequireDefault(require("moment"));var _MHeader=_interopRequireDefault(require("../../components/MHeader"));var _jsxFileName="/Users/tima/Tima/react-native-timacare/src/screens/notification/index.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var Notification=exports.Notification=(0,_mobxReactLite.observer)(function Notification(){var _notificationStore$da,_this=this;var navigation=(0,_native.useNavigation)();var getData=function getData(){_store.default.getNotification();};(0,_react.useEffect)(function(){getData();},[]);return _react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.fill,{backgroundColor:'#FFFFFF'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:34,columnNumber:5}},_react.default.createElement(_MHeader.default,{title:"Th\xF4ng b\xE1o",onBack:function onBack(){return navigation.goBack();},__self:this,__source:{fileName:_jsxFileName,lineNumber:35,columnNumber:7}}),_react.default.createElement(_reactNative.SafeAreaView,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:36,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'#E0E0E0',marginHorizontal:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:37,columnNumber:9}}),_react.default.createElement(_reactNative.ScrollView,{style:{flex:1,marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:45,columnNumber:9}},(_notificationStore$da=_store.default.data)==null?void 0:_notificationStore$da.map(function(item,index){return _react.default.createElement(_reactNative.View,{key:index,style:{marginBottom:8,paddingHorizontal:16},__self:_this,__source:{fileName:_jsxFileName,lineNumber:47,columnNumber:13}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:51,columnNumber:15}},_react.default.createElement(_icons.IconRead,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:57,columnNumber:17}}),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{fontSize:10,marginBottom:2,marginLeft:3}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:58,columnNumber:17}},(0,_moment.default)(item.pushTime).format('HH:mm'))),_react.default.createElement(_reactNative.View,{style:{borderWidth:1,borderColor:'#E0E0E0',borderRadius:8,padding:8,backgroundColor:'white'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:67,columnNumber:15}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:76,columnNumber:17}},"Th\xF4ng b\xE1o \u0110\u01A1n vay",' ',_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{color:'#EF4123'}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:78,columnNumber:19}},item.loanbriefId)),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{marginTop:8}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:84,columnNumber:17}},item.message),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{marginTop:8}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:87,columnNumber:17}},"Th\u1EDDi gian thay \u0111\u1ED5i:",' ',_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],__self:_this,__source:{fileName:_jsxFileName,lineNumber:89,columnNumber:19}},(0,_moment.default)(item.pushTime).format('HH:mm'),' ',(0,_utils.formatDDMMYYY)(item.pushTime)))));}))));});
//# sourceMappingURL=index.js.map