dappconnect-chat-sdk/packages/icons/20/token-icon.tsx

31 lines
1.0 KiB
TypeScript

import { useTheme } from '@tamagui/core'
import { Path, Svg } from 'react-native-svg'
import type { IconProps } from '../types'
const SvgTokenIcon = (props: IconProps) => {
const { color: token = '$neutral-100' } = props
const theme = useTheme()
/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */
// @ts-ignore
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const color = theme[token]?.val ?? token
return (
<Svg
width={20}
height={20}
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<Path
fillRule="evenodd"
clipRule="evenodd"
d="M9.265 4.483A5.65 5.65 0 0 0 6.56 14.577l-.46 1.715 1.256.336.366-1.366a5.65 5.65 0 0 0 1.642.44l-.366 1.366 1.256.337.46-1.715.012-.002a5.65 5.65 0 0 0 3.258-1.606l-.92-.92a4.35 4.35 0 1 1 1.127-4.201l1.255-.337a5.65 5.65 0 0 0-2.018-3.02l-.01-.008.46-1.714-1.257-.337-.366 1.366a5.651 5.651 0 0 0-1.641-.44l.366-1.366-1.256-.336-.46 1.714Z"
fill={color}
/>
</Svg>
)
}
export default SvgTokenIcon