{/* Always visible bar showing latest notification */}
{getNotificationIcon(latestNotification.type)}
{latestNotification.title}
{latestNotification.message && (
- {latestNotification.message}
)}
{latestNotification.action &&
(() => {
const action = latestNotification.action;
return (
);
})()}
{notifications.length > 1 && (
)}
{latestNotification.dismissible && (
)}
{/* Expanded section showing additional notifications */}
1 ? 'max-h-60' : 'max-h-0'
)}
>
{notifications.slice(1).map((notification) => (
{getNotificationIcon(notification.type)}
{notification.title}
{notification.message && (
- {notification.message}
)}
{notification.action &&
(() => {
const action = notification.action;
return (
);
})()}
{notification.dismissible && (
)}
))}
);
}