'use client'; import { useNotification } from '../context/NotificationContext'; const Notification = () => { const { notification, clearNotification } = useNotification(); if (!notification) return null; const notificationTypeClass = { success: 'alert-success', error: 'alert-danger', warning: 'alert-warning', info: 'alert-info', }[notification.type] || 'alert-info'; return (
{notification.message}
); }; export default Notification;