packageDocumentation module import "./Badge.scss" ; import classnames from "classnames" ; import * as React from "react" ; import { SvgSprite } from "../icons/SvgSprite" ; import { CommonProps } from "../utils/Props" ; internal export interface BadgeProps extends CommonProps { svg : any ; } internal export class Badge extends React . PureComponent < BadgeProps > { public override render ( ) { return ( < div className = { classnames ( "core-badge" , this . props . className ) } style = { this . props . style } > < SvgSprite src = { this . props . svg } /> < /div>); } }