import {
View,
Text,
ScrollView,
Pressable,
ImageBackground
} from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context';
import { router } from 'expo-router';
import { CrossLogoSvg } from '../global/SVG';
const coupons = [
{
title: '迎新優惠券',
price: '999',
detail: '這是一段有關迎新優惠券的說明',
date: '至14/3/2025'
},
{
title: '折扣優惠券',
price: '888',
detail: '這是另一段有關迎新優惠券的說明',
date: '至15/4/2025'
},
{
title: '三張優惠券',
price: '777',
detail: '這是第三段有關迎新優惠券的說明',
date: '至16/9/2026'
}
];
export const IndividualCouponComponent = ({
title,
price,
detail,
date
}: {
title: string;
price: string;
detail: string;
date: string;
}) => (
$
{price}
{title}
{/* //dash line */}
{title}
{detail}
有效期
{' '}
{date}
);
const WalletPageComponent = () => {
const image = { uri: 'https://legacy.reactjs.org/logo-og.png' };
return (
{
if (router.canGoBack()) {
router.back();
} else {
router.replace('/accountMainPage');
}
}}
>
錢包
餘額 (HKD)
$2711.8
console.log('增值')}
>
+ 增值
更多錢包資訊
優惠券
router.push('couponPage')}>
顯示所有
{coupons.slice(0, 2).map((coupon, index) => (
))}
);
};
export default WalletPageComponent;