import Alert from "../atoms/Alert"; export interface Notification { id: number, type: "info" | "danger" | "success", message?: string, aliveFor?: number, keepAlive?: boolean, children?: any } export interface Props { notifications: Notification[], onClose?: (...args: any[]) => any } const Notifications = ({ notifications, onClose }: Props): JSX.Element => { const closeNotification = (id: number) => { if (onClose) { onClose(id) } } return (