scripts/core/ui/components/Icon2.tsx
import React from 'react';
import {IPropsIcon} from 'superdesk-api';
export class Icon extends React.PureComponent<IPropsIcon> {
render() {
return (
<span style={{display: 'flex', justifyContent: 'center', alignItems: 'center'}}>
<i
style={{fontSize: (this.props.size || 16) + 'px', lineHeight: '1', width: 'auto', height: 'auto'}}
className={this.props.className}
/>
</span>
);
}
}