import { useQuery } from "@tanstack/react-query";
import { fetchUserMessageQueueStatus } from "../api/client";

export function useUserMessageQueueStatus() {
	return useQuery({
		queryKey: ["users", "message-queue"],
		queryFn: fetchUserMessageQueueStatus,
		refetchInterval: 5_000,
		staleTime: 0,
	});
}
