react-jam-ui
Version:
React JAM UI components
32 lines (28 loc) • 1.02 kB
JavaScript
import React from 'react'
import classNames from 'classnames'
export default class IconRefresh extends React.Component {
constructor() {
super();
this.state = {
};
}
render() {
const {
size,
className,
...rest
} = this.props;
const wh = size || '1em'
const icon = `<svg xmlns="http://www.w3.org/2000/svg" width="${wh}" height="${wh}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="23 4 23 10 17 10"></polyline><polyline points="1 20 1 14 7 14"></polyline><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"></path></svg>`
const classes = classNames(
'icon',
'icon-refresh',
className
);
return <i
className={ classes }
dangerouslySetInnerHTML={{__html: icon }}
{ ...rest }
/>;
}
}