var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=MHeader;var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _icons=require("../assets/icons");var _MText=require("./MText");var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _native=require("@react-navigation/native");var _reactNativeSafeAreaContext=require("react-native-safe-area-context");var _jsxFileName="/Users/tima/Tima/react-native-timacare/src/components/MHeader.tsx";function MHeader(_ref){var title=_ref.title,onBack=_ref.onBack;var navigation=(0,_native.useNavigation)();var insets=(0,_reactNativeSafeAreaContext.useSafeAreaInsets)();return _react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF8E4F','#EF592E'],style:{zIndex:10000},__self:this,__source:{fileName:_jsxFileName,lineNumber:24,columnNumber:5}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',paddingTop:insets.top+16,paddingBottom:8,justifyContent:'space-between',paddingHorizontal:16,zIndex:10000},__self:this,__source:{fileName:_jsxFileName,lineNumber:30,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:{display:'flex',flexDirection:'row',alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:41,columnNumber:9}},onBack&&_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){if(onBack)onBack();},style:{width:32,height:32,justifyContent:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:49,columnNumber:13}},_react.default.createElement(_icons.IconBackWhite,{__self:this,__source:{fileName:_jsxFileName,lineNumber:59,columnNumber:15}})),_react.default.createElement(_MText.MText,{style:{fontWeight:'bold',color:'white',fontSize:14},__self:this,__source:{fileName:_jsxFileName,lineNumber:62,columnNumber:11}},title)),_react.default.createElement(_reactNative.View,{style:{borderWidth:1,borderColor:'white',flexDirection:'row',borderRadius:16,height:30,alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:72,columnNumber:9}},_react.default.createElement(_reactNative.TouchableOpacity,{style:{paddingHorizontal:10},onPress:function onPress(){_reactNative.Linking.openURL("tel:1900633688");},__self:this,__source:{fileName:_jsxFileName,lineNumber:82,columnNumber:11}},_react.default.createElement(_icons.Call,{__self:this,__source:{fileName:_jsxFileName,lineNumber:90,columnNumber:13}})),_react.default.createElement(_reactNative.View,{style:{width:1,height:30,backgroundColor:'white'},__self:this,__source:{fileName:_jsxFileName,lineNumber:92,columnNumber:11}}),_react.default.createElement(_reactNative.TouchableOpacity,{style:{paddingHorizontal:10},onPress:function onPress(){navigation.navigate('MyBank.Main');},__self:this,__source:{fileName:_jsxFileName,lineNumber:93,columnNumber:11}},_react.default.createElement(_icons.CloseIcon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:101,columnNumber:13}})))));}
//# sourceMappingURL=MHeader.js.map