UNPKG
globalbridge-lsf-custom
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
GlobalBridge in-house labeling tool, originating from LSF.
globalbridge-lsf-custom
/
src
/
common
/
Icon
/
Icon.js
12 lines
(10 loc)
•
278 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
React
from
'react'
;
import
{
Block
}
from
'../../utils/bem'
;
import
'./Icon.styl'
;
export
const
Icon
=
React
.
forwardRef
(
(
{ icon, ...props }, ref
) =>
{
return
(
<
Block
tag
=
'span'
name
=
'icon'
ref
=
{ref}
>
{React.createElement(icon, props)}
</
Block
>
); });