import Icon from '../Icon'; import ScreenReaderText from '../ScreenReaderText'; import WrapperTag from '../WrapperTag'; import { AbstractNotificationMessageProps } from './types'; import clsx from 'clsx'; const AbstractNotificationMessage = ({ ariaLive = 'polite', children, className, headingLevel = 'h3', icon, isDismissable, title, ...props }: AbstractNotificationMessageProps) => { return (
{icon && } {title} {children &&
{children}
} {isDismissable && }
); }; AbstractNotificationMessage.displayName = 'AbstractNotificationMessage'; export default AbstractNotificationMessage;