import React from 'react'; import { View, Text, TouchableOpacity, ScrollView } from 'react-native'; import { getStyles } from './accountScreen.styles'; import { Header, PrimaryButton } from '@components'; import { useAppTheme } from '@theme'; import { useAppDispatch, useAppSelector } from '../../../hooks/useAppDispatch'; import { logout } from '../../../store/authSlice'; const MENU_ITEMS = [ { icon: '📍', label: 'My Addresses' }, { icon: '💳', label: 'Payment Methods' }, { icon: '🔔', label: 'Notifications' }, { icon: '❓', label: 'Help & Support' }, { icon: '📋', label: 'Terms & Conditions' }, { icon: '🔒', label: 'Privacy Policy' }, ]; export const AccountScreen: React.FC = () => { const { colors } = useAppTheme(); const styles = getStyles(colors); const dispatch = useAppDispatch(); const user = useAppSelector((state) => state.auth.user); return (
{user?.name?.charAt(0)?.toUpperCase() || 'U'} {user?.name || 'User'} {user?.mobileNumber || '+91 98765 43210'} {MENU_ITEMS.map((item, index) => ( {item.icon} {item.label} {'>'} ))} dispatch(logout())} style={{ marginTop: 24 }} /> ); };