import React from 'react'; import { View, Text, ViewStyle } from 'react-native'; import { useAppTheme } from '@theme'; import { getStyles } from './badge.styles'; interface BadgeProps { count: number; color?: string; style?: ViewStyle; } export const Badge: React.FC = ({ count, color, style }) => { const { colors } = useAppTheme(); const styles = getStyles(colors); if (count <= 0) return null; return ( {count > 99 ? '99+' : count} ); }; export default Badge;