import type { AlertViewProps } from "./Alert.types"; import Button from "../../buttons/Button"; export function AlertView({ title, description, status: _status, type: _type, hasLeadingIcon, hasBodyText, hasTrailingIcon, className, containerClasses, containerStyle, titleClasses, descriptionClasses, iconColor, closeButtonIconColor, onClose, closeAlertAriaLabel, }: AlertViewProps) { const getIcon = () => { // Use the Icon_Alert.svg with dynamic fill color // The SVG has a fill that we'll override with the iconColor // Icon is 19x19px with 2.5px spacing in a 24x24px bounding box return ( ); }; return (
{title}
{hasBodyText && description && ({description}
)}