import { useContext } from 'react';
import { NotificationContext } from '../contexts/NotificationContextState';

export const useNotifications = () => {
    const context = useContext(NotificationContext);
    if (!context) {
        throw new Error('useNotifications must be used within a NotificationProvider');
    }
    return context;
};
