"use client";

import { useAppSelector } from "@/store/hooks";
import { useAuthToken } from "@/hooks/use-auth-token"
import { useNotificationSocket } from "@/hooks/use-notification-socket";

/**
 * Connects to the notifications WebSocket when the user has an access token.
 * Mount this inside the authenticated app shell.
 */
export function NotificationSocketProvider() {
  const { token: accessToken } = useAuthToken();
  useNotificationSocket(accessToken);
  return null;
}
