MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / getNextDateRange

Function getNextDateRange

src/components/Stats.tsx:61–64  ·  view source on GitHub ↗
(current: StatsDateRange)

Source from the content-addressed store, hash-verified

59const DATE_RANGE_ORDER: StatsDateRange[] = ['all', '7d', '30d'];
60
61function getNextDateRange(current: StatsDateRange): StatsDateRange {
62 const currentIndex = DATE_RANGE_ORDER.indexOf(current);
63 return DATE_RANGE_ORDER[(currentIndex + 1) % DATE_RANGE_ORDER.length]!;
64}
65
66/**
67 * Creates a stats loading promise that never rejects.

Callers 1

StatsContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected