import MdiIcon from '@mdi/react'; import classnames from 'classnames'; import { Component } from 'react'; import injectStyle, { WithStylesProps } from 'react-jss'; import { Theme } from '../../../themes'; interface IProps extends WithStylesProps { icon: string; size?: number; className?: string; } const styles = (theme: Theme) => ({ icon: { fill: theme.colorText, }, }); class IconComponent extends Component { public static defaultProps = { size: 1, }; render() { const { classes, icon, size, className } = this.props; if (!icon) { console.warn('No Icon specified'); } return ( ); } } export const Icon = injectStyle(styles, { injectTheme: true })(IconComponent);