MCPcopy Create free account
hub / github.com/Dimillian/CodexMonitor / formatAccountTypeLabel

Function formatAccountTypeLabel

src/features/home/homeFormatters.ts:107–117  ·  view source on GitHub ↗
(
  value: AccountSnapshot["type"] | null | undefined,
)

Source from the content-addressed store, hash-verified

105}
106
107export function formatAccountTypeLabel(
108 value: AccountSnapshot["type"] | null | undefined,
109) {
110 if (value === "chatgpt") {
111 return "ChatGPT account";
112 }
113 if (value === "apikey") {
114 return "API key";
115 }
116 return "Connected account";
117}
118
119export function formatWindowDuration(valueMins: number | null | undefined) {
120 if (typeof valueMins !== "number" || !Number.isFinite(valueMins) || valueMins <= 0) {

Callers 1

buildHomeUsageViewModelFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected