import { mdiStar } from '@mdi/js'; import classnames from 'classnames'; import { Component } from 'react'; import injectStyle, { WithStylesProps } from 'react-jss'; import { Theme } from '../../../themes'; import Icon from '../icon'; import Badge from './index'; const styles = (theme: Theme) => ({ badge: { height: 'auto', padding: [4, 6, 2, 7], borderRadius: theme.borderRadiusSmall, }, invertedBadge: { background: theme.styleTypes.primary.contrast, color: theme.styleTypes.primary.accent, }, icon: { fill: theme.styleTypes.primary.contrast, }, invertedIcon: { fill: theme.styleTypes.primary.accent, }, }); interface IProps extends WithStylesProps { badgeClasses?: string; iconClasses?: string; inverted?: boolean; className?: string; } class ProBadgeComponent extends Component { render() { const { classes, badgeClasses, iconClasses, inverted, className } = this.props; return ( ); } } export const ProBadge = injectStyle(styles, { injectTheme: true })( ProBadgeComponent, );