({
size = 24,
color,
icon,
theme: themeOverrides,
}: Props)
| 63 | * ``` |
| 64 | */ |
| 65 | const DialogIcon = ({ |
| 66 | size = 24, |
| 67 | color, |
| 68 | icon, |
| 69 | theme: themeOverrides, |
| 70 | }: Props) => { |
| 71 | const theme = useInternalTheme(themeOverrides); |
| 72 | |
| 73 | if (!theme.isV3) { |
| 74 | return null; |
| 75 | } |
| 76 | |
| 77 | //@ts-ignore |
| 78 | const iconColor = color || theme.colors.secondary; |
| 79 | |
| 80 | return ( |
| 81 | <View style={styles.wrapper}> |
| 82 | <Icon source={icon} color={iconColor} size={size} /> |
| 83 | </View> |
| 84 | ); |
| 85 | }; |
| 86 | |
| 87 | DialogIcon.displayName = 'Dialog.Icon'; |
| 88 |
nothing calls this directly
no test coverage detected
searching dependent graphs…