`) * so the existing e2e selectors continue to match. * * @package Integrum\SecurityScanner\Views * * @var array{type: string, message: string, scope: string} $notice */ declare( strict_types = 1 ); if ( ! defined( 'ABSPATH' ) ) { exit; } $notice_styles = array( 'success' => 'bg-emerald-50 border-emerald-200 text-emerald-800', 'error' => 'bg-red-50 border-red-200 text-red-800', 'warning' => 'bg-amber-50 border-amber-200 text-amber-800', 'info' => 'bg-primary-50 border-primary-200 text-primary-800', ); $notice_icons = array( 'success' => 'dashicons-yes', 'error' => 'dashicons-dismiss', 'warning' => 'dashicons-warning', 'info' => 'dashicons-info', ); $n_type = isset( $notice['type'] ) ? $notice['type'] : 'info'; $n_message = isset( $notice['message'] ) ? $notice['message'] : ''; $n_classes = $notice_styles[ $n_type ] ?? $notice_styles['info']; $n_icon = $notice_icons[ $n_type ] ?? $notice_icons['info']; ?>