-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgoogle-plus-circle.tsx
40 lines (35 loc) · 987 Bytes
/
google-plus-circle.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// for Filled types
import {
GooglePlusCircleFilled
} from '@ant-design/icons-svg'
import { renderIconDefinitionToSVGElement } from '@ant-design/icons-svg/es/helpers'
import { h, createFunctionComponent } from '@polymita/renderer'
const GooglePlusCircleFilledSVGString = renderIconDefinitionToSVGElement(
GooglePlusCircleFilled,
{
extraSVGAttrs: { width: '1em', height: '1em', fill: 'currentColor' }
}
)
const styleMap = {
filled: GooglePlusCircleFilledSVGString
}
interface IconProps {
className?: string
size?: number | string
color?: string
type?: 'filled'
spin?: boolean
}
const Icon = createFunctionComponent({
layout: (props: IconProps = {}) => {
const style = {
fontSize: (props.size || 16) + 'px',
color: props.color,
display: 'inline-block'
}
const cls = props.className
const html = styleMap[props.type || 'filled']
return h('polymitaIcon', { _html: html, style, className: cls })
}
})
export default Icon