// @flow strict import * as React from 'react'; import type {AlertSemanticType} from '../../types/common'; import {TEXT_COLORS} from '../../types/typography'; import classify from '../../utils/classify'; import type {IconProps} from './Icon'; import {Icon} from './Icon'; import css from './SemanticIcon.module.css'; type ClassNames = $ReadOnly<{wrapper?: string, icon?: string}>; export type SemanticIconProps = { ...IconProps, classNames?: ClassNames, semantic?: AlertSemanticType, }; export const SemanticIcon = ({ semantic = 'neutral', classNames, size = 'medium', ...iconProps }: SemanticIconProps): React.Node => ( <> {!!iconProps.name && (