import { useModalManager } from './useModalManager';

/**
 * Custom hook for managing notifications and toasts
 * @returns {object} - Notification utilities
 */
export const useNotifications = () => {
  const { showToast, showPremiumModal, showConfirmationModal } = useModalManager();

  const showSuccess = (message, title = 'Success') => {
    showToast(title, message, 'success');
  };

  const showError = (message, title = 'Error') => {
    showToast(title, message, 'error');
  };

  const showInfo = (message, title = 'Info') => {
    showToast(title, message, 'info');
  };

  const showWarning = (message, title = 'Warning') => {
    showToast(title, message, 'warning');
  };

  return {
    showSuccess,
    showError,
    showInfo,
    showWarning,
    showPremiumModal,
    showConfirmationModal
  };
};