import { AlertGroup, Alert, AlertActionCloseButton, AlertVariant, } from "@patternfly/react-core"; import type { AlertEntry } from "./Alerts"; type AlertPanelProps = { alerts: AlertEntry[]; onCloseAlert: (id: string) => void; }; export function AlertPanel({ alerts, onCloseAlert }: AlertPanelProps) { return ( {alerts.map(({ id, variant, message, description }) => ( onCloseAlert(id)} /> } > {description &&

{description}

}
))}
); }