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