MCPcopy Create free account
hub / github.com/anomalyco/opencode / tooltipValue

Function tooltipValue

packages/app/src/components/session-context-usage.tsx:124–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122 )
123
124 const tooltipValue = () => (
125 <div class="flex w-[120px] flex-col gap-2">
126 <ContextTooltipRow name={language.t("context.usage.cost")} value={cost()} />
127 <ContextTooltipRow name={language.t("context.usage.usage")} value={`${context()?.usage ?? 0}%`} />
128 <ContextTooltipRow
129 name={language.t("context.usage.tokens")}
130 value={getSessionTokenTotal(tokens())?.toLocaleString(language.intl()) ?? "0"}
131 />
132 </div>
133 )
134
135 return (
136 <Show when={params.id}>

Callers 1

SessionContextUsageFunction · 0.70

Calls 4

getSessionTokenTotalFunction · 0.90
contextFunction · 0.70
costFunction · 0.50
tokensFunction · 0.50

Tested by

no test coverage detected