'use client' import { createContext, useContext, useState } from 'react'; const NotificationContext = createContext(); export const NotificationProvider = ({ children }) => { const [notification, setNotification] = useState(null); const showNotification = (message, type = 'info') => { setNotification({ message, type }); }; const clearNotification = () => { setNotification(null); }; return ( {children} ); }; export const useNotification = () => useContext(NotificationContext);