({ theme, disabled }: BaseProps)
| 8 | }; |
| 9 | |
| 10 | export function getTextColor({ theme, disabled }: BaseProps) { |
| 11 | if (theme.isV3) { |
| 12 | if (disabled) { |
| 13 | return theme.colors.onSurfaceDisabled; |
| 14 | } |
| 15 | return theme.colors.onSurfaceVariant; |
| 16 | } |
| 17 | return color(theme.colors?.text) |
| 18 | .alpha(theme.dark ? 0.7 : 0.54) |
| 19 | .rgb() |
| 20 | .string(); |
| 21 | } |
| 22 | |
| 23 | export function getIconColor({ |
| 24 | theme, |
no outgoing calls
no test coverage detected
searching dependent graphs…