import { createContext, useContext } from 'react'

interface NotificationContextType {
  showNotification: (message: string, type: 'success' | 'error') => void
  hideNotification: () => void
}

export const NotificationContext = createContext<NotificationContextType>({
  showNotification: () => {},
  hideNotification: () => {}
})

export const useNotification = () => useContext(NotificationContext)
