import Notification from './Notification'; import { Notification as NotificationType } from './NotificationProvider'; interface NoticationsProps { notifications: Required[]; clearNotification: (text: string) => void; } const Notifications = ({ notifications, clearNotification }: NoticationsProps) => { if (!notifications.length) { return null; } return (
{notifications.map((notif) => ( ))}
); }; export default Notifications;