({
tintColor,
hasColor,
focused,
defaultColor,
theme,
}: BaseProps & {
tintColor: string;
hasColor: boolean;
focused: boolean;
})
| 45 | }; |
| 46 | |
| 47 | export const getLabelColor = ({ |
| 48 | tintColor, |
| 49 | hasColor, |
| 50 | focused, |
| 51 | defaultColor, |
| 52 | theme, |
| 53 | }: BaseProps & { |
| 54 | tintColor: string; |
| 55 | hasColor: boolean; |
| 56 | focused: boolean; |
| 57 | }) => { |
| 58 | if (hasColor) { |
| 59 | return tintColor; |
| 60 | } |
| 61 | |
| 62 | if (theme.isV3) { |
| 63 | if (focused) { |
| 64 | return theme.colors.onSurface; |
| 65 | } |
| 66 | return theme.colors.onSurfaceVariant; |
| 67 | } |
| 68 | |
| 69 | return defaultColor; |
| 70 | }; |
no outgoing calls
no test coverage detected
searching dependent graphs…