2023-03-13 20:47:52 +00:00
|
|
|
import { useTheme } from '@tamagui/core'
|
2023-01-20 14:18:05 +00:00
|
|
|
import { Path, Rect, Svg } from 'react-native-svg'
|
|
|
|
|
2023-03-13 20:47:52 +00:00
|
|
|
import type { IconProps } from '../types'
|
2023-01-20 14:18:05 +00:00
|
|
|
|
2023-03-13 20:47:52 +00:00
|
|
|
const SvgPasswordIcon = (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
|
2023-01-20 14:18:05 +00:00
|
|
|
return (
|
|
|
|
<Svg
|
|
|
|
width={20}
|
|
|
|
height={20}
|
|
|
|
fill="none"
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
2023-03-13 20:47:52 +00:00
|
|
|
{...props}
|
2023-01-20 14:18:05 +00:00
|
|
|
>
|
|
|
|
<Rect
|
|
|
|
x={3.5}
|
|
|
|
y={3.5}
|
|
|
|
width={13}
|
|
|
|
height={13}
|
|
|
|
rx={4}
|
|
|
|
stroke={color}
|
|
|
|
strokeWidth={1.3}
|
|
|
|
/>
|
|
|
|
<Path
|
|
|
|
fillRule="evenodd"
|
|
|
|
clipRule="evenodd"
|
|
|
|
d="M7.5 9.15a.85.85 0 1 0 0 1.7.85.85 0 0 0 0-1.7ZM5.35 10a2.15 2.15 0 0 1 4.2-.65H14.15V12h-1.3v-1.35h-.7v.85h-1.3v-.85h-1.3a2.15 2.15 0 0 1-4.2-.65Z"
|
|
|
|
fill={color}
|
|
|
|
/>
|
|
|
|
</Svg>
|
|
|
|
)
|
|
|
|
}
|
2023-01-23 13:03:08 +00:00
|
|
|
export default SvgPasswordIcon
|