• Hook to access the rate limit context. Must be used within a RateLimitProvider.

    Returns RateLimitContextType

    The current rate limit context value.

    If used outside a RateLimitProvider.

    export function useRateLimit() {
    const context = useContext(RateLimitContext);
    if (context === undefined) {
    throw new Error("useRateLimit must be used within a RateLimitProvider");
    }
    return context;
    }