import { useQuery } from '@tanstack/react-query';
import { apiClient } from '../lib/api-client';
export function useShareStatus(sessionId) {
    const { data, isLoading, error } = useQuery({
        queryKey: ['share-status', sessionId],
        queryFn: () => apiClient.getShareStatus(sessionId),
        enabled: !!sessionId,
        staleTime: 30000,
    });
    return { data, isLoading, error: error };
}
//# sourceMappingURL=useShareStatus.js.map