2023-03-13 20:47:52 +00:00
|
|
|
import { useTheme } from '@tamagui/core'
|
2023-01-20 14:18:05 +00:00
|
|
|
import { Path, 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 SvgCalendarIcon = (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={16}
|
|
|
|
height={16}
|
|
|
|
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
|
|
|
>
|
|
|
|
<Path
|
|
|
|
d="M14 9.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C11.72 14 10.88 14 9.2 14H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 11.72 2 10.88 2 9.2V7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C4.28 3 5.12 3 6.8 3h2.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C14 5.28 14 6.12 14 7.8v1.4Z"
|
|
|
|
stroke={color}
|
|
|
|
strokeWidth={1.2}
|
|
|
|
/>
|
|
|
|
<Path d="M5 2v2" stroke="#000" strokeWidth={1.3} strokeLinecap="round" />
|
|
|
|
<Path
|
|
|
|
d="M3 6.5h10"
|
|
|
|
stroke="#000"
|
|
|
|
strokeWidth={1.3}
|
|
|
|
strokeLinecap="square"
|
|
|
|
/>
|
|
|
|
<Path d="M11 2v2" stroke="#000" strokeWidth={1.3} strokeLinecap="round" />
|
|
|
|
</Svg>
|
|
|
|
)
|
|
|
|
}
|
2023-01-23 13:03:08 +00:00
|
|
|
export default SvgCalendarIcon
|