// app/(auth)/(tabs)/(home)/chargingDetailPage.tsx import { View, Text, Pressable, Image, ScrollView, Alert, ImageBackground, ActivityIndicator, Dimensions } from 'react-native'; import { SafeAreaView } from 'react-native-safe-area-context'; import { router, useLocalSearchParams } from 'expo-router'; import { CrossLogoSvg, PreviousPageBlackSvg } from '../../../../component/global/SVG'; import { useEffect, useState } from 'react'; import DisplayedOnlyCouponTabView from '../../../../component/global/displayedOnlyCouponTabView'; import NotificationTabView from '../../../../component/global/notificationTabViewComponent'; import { chargeStationService } from '../../../../service/chargeStationService'; import { formatToChineseDateTime } from '../../../../util/lib'; import { useTranslation } from '../../../../util/hooks/useTranslation'; const ChargingDetailPage = () => { const { t } = useTranslation(); const screenHeight = Dimensions.get('window').height; const { promotion } = useLocalSearchParams(); const promotionObj = JSON.parse(promotion as string); const [loading, setLoading] = useState(false); return ( {loading ? ( ) : ( { if (router.canGoBack()) { router.back(); } else { router.replace('/notificationPage'); } }} hitSlop={{ top: 20, bottom: 20, left: 20, right: 20 }} > {t('notifications.charging_detail.title')} {t('notifications.charging_detail.charging_completed')} {t('notifications.charging_detail.charging_completed_message')} {t('notifications.charging_detail.last_updated')}: {formatToChineseDateTime(promotionObj.updatedAt)} )} ); }; export default ChargingDetailPage;