import React from 'react'; import { Pressable } from 'react-native'; import { Icon, IconProps } from '../../foundation'; import { useThrottledPressHandler } from '../../internal/utils/useThrottledPressHandler'; import { NotificationDot } from '../notificationDot/NotificationDot'; export function TopNavigationIcon({ iconName, iconColor = 'text_primary', onPress, showDot, }: { iconName: IconProps['name']; iconColor?: IconProps['color']; onPress: () => void; showDot?: boolean; }) { const throttledPressHandler = useThrottledPressHandler(onPress); return ( {showDot && } ); }