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

Function EffortLevelIndicator

src/components/ModelPicker.tsx:405–430  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

403 return value === NO_PREFERENCE ? getDefaultMainLoopModel() : parseUserSpecifiedModel(value);
404}
405function EffortLevelIndicator(t0) {
406 const $ = _c(5);
407 const {
408 effort
409 } = t0;
410 const t1 = effort ? "claude" : "subtle";
411 const t2 = effort ?? "low";
412 let t3;
413 if ($[0] !== t2) {
414 t3 = effortLevelToSymbol(t2);
415 $[0] = t2;
416 $[1] = t3;
417 } else {
418 t3 = $[1];
419 }
420 let t4;
421 if ($[2] !== t1 || $[3] !== t3) {
422 t4 = <Text color={t1}>{t3}</Text>;
423 $[2] = t1;
424 $[3] = t3;
425 $[4] = t4;
426 } else {
427 t4 = $[4];
428 }
429 return t4;
430}
431function cycleEffortLevel(current: EffortLevel, direction: 'left' | 'right', includeMax: boolean): EffortLevel {
432 const levels: EffortLevel[] = includeMax ? ['low', 'medium', 'high', 'max'] : ['low', 'medium', 'high'];
433 // If the current level isn't in the cycle (e.g. 'max' after switching to a

Callers

nothing calls this directly

Calls 1

effortLevelToSymbolFunction · 0.85

Tested by

no test coverage detected