import { useAuth } from '@/hooks/useAuth';
import { usePublicNovuSettings } from '@/hooks/usePublicNovuSettings';

export function useNovuNotifications() {
  const { user } = useAuth();
  const { applicationIdentifier, isLoading } = usePublicNovuSettings();

  const subscriberId = user?.id;
  const isEnabled = !!applicationIdentifier && !!subscriberId;

  return {
    applicationIdentifier,
    subscriberId,
    isEnabled,
    isLoading,
  };
}
