"use client"; import { ReactNode } from 'react'; interface NotificationStackProps { children: ReactNode[]; } /** * Container component to stack multiple notifications vertically */ export function NotificationStack({ children }: NotificationStackProps) { const notifications = Array.isArray(children) ? children.filter(Boolean) : (children ? [children] : []); if (notifications.length === 0) { return null; } return (
{notifications.map((notification, index) => (
{notification}
))}
); }