import React from 'react'; import { View, Text, TouchableOpacity, StyleSheet } from 'react-native'; import { Feather } from '@expo/vector-icons'; type MenuItemProps = { icon: string; label: string; badge?: number; onPress?: () => void; }; const MenuItem = ({ icon, label, badge, onPress }: MenuItemProps) => { return ( {label} {badge ? ( {badge} ) : null} ); }; export default MenuItem; const styles = StyleSheet.create({ menuItem: { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', paddingVertical: 16, borderBottomWidth: 1, borderBottomColor: '#E5E7EB', marginHorizontal: 15 }, menuItemLeft: { flexDirection: 'row', alignItems: 'center', gap: 12, }, menuItemText: { fontSize: 15, color: '#374151', }, menuItemRight: { flexDirection: 'row', alignItems: 'center', gap: 8, }, menuBadge: { backgroundColor: '#F59E0B', width: 20, height: 20, borderRadius: 10, justifyContent: 'center', alignItems: 'center', }, menuBadgeText: { color: 'white', fontSize: 12, fontWeight: '500', }, });