dappconnect-sdks/packages/icons/20/qr-code-icon.tsx

59 lines
1.6 KiB
TypeScript
Raw Normal View History

2023-03-13 20:47:52 +00:00
import { useTheme } from '@tamagui/core'
import { Path, Rect, Svg } from 'react-native-svg'
2023-03-13 20:47:52 +00:00
import type { IconProps } from '../types'
2023-03-13 20:47:52 +00:00
const SvgQrCodeIcon = (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"
2023-03-13 20:47:52 +00:00
{...props}
>
<Rect
x={3.5}
y={3.5}
width={5}
height={5}
rx={1}
stroke={color}
strokeWidth={1.3}
/>
<Path
d="M12.869 11.881c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668l.988.988c.396.396.594.594.668.822a1 1 0 0 1 0 .618c-.074.228-.272.426-.668.822l-.988.988c-.396.396-.594.594-.822.668a1 1 0 0 1-.618 0c-.228-.074-.426-.272-.822-.668l-.988-.988c-.396-.396-.594-.594-.668-.822a1 1 0 0 1 0-.618c.074-.228.272-.426.668-.822l.988-.988Z"
stroke={color}
strokeWidth={1.3}
/>
<Rect
x={11.5}
y={3.5}
width={5}
height={5}
rx={1}
stroke={color}
strokeWidth={1.3}
/>
<Rect x={13.1} y={5.1} width={1.8} height={1.8} rx={0.5} fill={color} />
<Rect
x={3.5}
y={11.5}
width={5}
height={5}
rx={2.5}
stroke={color}
strokeWidth={1.3}
/>
<Rect x={5.1} y={13.1} width={1.8} height={1.8} rx={0.9} fill={color} />
</Svg>
)
}
2023-01-23 13:03:08 +00:00
export default SvgQrCodeIcon