2023-01-20 14:06:26 +00:00
|
|
|
import type {
|
|
|
|
SizeTokens,
|
|
|
|
StyleObject,
|
|
|
|
ThemeParsed,
|
|
|
|
Tokens,
|
|
|
|
} from '@tamagui/core'
|
|
|
|
import type { SvgProps } from 'react-native-svg'
|
2023-01-17 13:32:04 +00:00
|
|
|
|
2023-01-20 14:06:26 +00:00
|
|
|
type GetTokenString<A> = A extends string ? `$${A}` : `$${string}`
|
|
|
|
export type ColorTokens =
|
|
|
|
| GetTokenString<keyof Tokens['color']>
|
|
|
|
| GetTokenString<keyof ThemeParsed>
|
|
|
|
|
|
|
|
export type IconProps = SvgProps & {
|
|
|
|
size?: number | SizeTokens
|
|
|
|
color?: ColorTokens
|
|
|
|
style?: StyleObject
|
2023-01-17 13:32:04 +00:00
|
|
|
}
|