MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getNextDateRange

Function getNextDateRange

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

Source from the content-addressed store, hash-verified

52};
53const DATE_RANGE_ORDER: StatsDateRange[] = ['all', '7d', '30d'];
54function getNextDateRange(current: StatsDateRange): StatsDateRange {
55 const currentIndex = DATE_RANGE_ORDER.indexOf(current);
56 return DATE_RANGE_ORDER[(currentIndex + 1) % DATE_RANGE_ORDER.length]!;
57}
58
59/**
60 * Creates a stats loading promise that never rejects.

Callers 1

StatsContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected