import React from 'react' import classNames from 'classnames' import { Props } from './IconBadge.types' import './IconBadge.css' /** * @deprecated Should start using the same component migrated to UI2. */ export const IconBadge = ({ icon, text, onClick, className, children, inline }: Props) => { const inlined = inline ? 'inlined' : 'boxed' const childrenInt = React.useMemo( () => ( <> {children && icon ? ( {children} ) : icon ? ( ) : null} {text ? {text} : null} ), [children, icon, text] ) return ( {childrenInt} ) }