• Custom hook to access the rate limit context.

    Returns RateLimitContextType

    The current rate limit context value.

    If used outside of a RateLimitProvider.

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