{
if (event.detail) {
messages.push({
message: event.detail.message,
tags: event.detail.type,
timeout: event.detail.timeout || Infinity
});
} else {
console.warn('Event detail is undefined');
}
})"
class="scroll-target bg-gray-50 bg-fixed text-gray-50 background-gradient">