// @flow strict import * as React from 'react'; import {TEXT_COLORS} from '../../types/typography'; import classify from '../../utils/classify'; import type {IconSize, IconType} from '../Icon'; import {Icon} from '../Icon'; import typographyStyle from '../../styles/typography.module.css'; import css from './BadgedIcon.module.css'; type ClassNames = $ReadOnly<{ wrapper?: string, icon?: string, badgeIcon?: string, }>; export type BadgedIconProps = { type?: IconType, name: string, size?: IconSize, ariaLabel?: string, showBadge?: boolean, classNames?: ClassNames, }; export const BadgedIcon = ({ name, showBadge = true, classNames, size = 'medium', type = 'solid', ariaLabel, }: BadgedIconProps): React.Node => ( <> {!!name && (
{showBadge && }
)} ); const BadgeIcon = ({className}: {className: ?string}): React.Node => ( );