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

Function KeybindingWarnings

src/components/KeybindingWarnings.tsx:13–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11 * Only shown when keybinding customization is enabled (ant users + feature gate).
12 */
13export function KeybindingWarnings() {
14 const $ = _c(2);
15 if (!isKeybindingCustomizationEnabled()) {
16 return null;
17 }
18 let t0;
19 let t1;
20 if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
21 t1 = Symbol.for("react.early_return_sentinel");
22 bb0: {
23 const warnings = getCachedKeybindingWarnings();
24 if (warnings.length === 0) {
25 t1 = null;
26 break bb0;
27 }
28 const errors = warnings.filter(_temp);
29 const warns = warnings.filter(_temp2);
30 t0 = <Box flexDirection="column" marginTop={1} marginBottom={1}><Text bold={true} color={errors.length > 0 ? "error" : "warning"}>Keybinding Configuration Issues</Text><Box><Text dimColor={true}>Location: </Text><Text dimColor={true}>{getKeybindingsPath()}</Text></Box><Box marginLeft={1} flexDirection="column" marginTop={1}>{errors.map(_temp3)}{warns.map(_temp4)}</Box></Box>;
31 }
32 $[0] = t0;
33 $[1] = t1;
34 } else {
35 t0 = $[0];
36 t1 = $[1];
37 }
38 if (t1 !== Symbol.for("react.early_return_sentinel")) {
39 return t1;
40 }
41 return t0;
42}
43function _temp4(warning, i_0) {
44 return <Box key={`warning-${i_0}`} flexDirection="column"><Box><Text dimColor={true}>└ </Text><Text color="warning">[Warning]</Text><Text dimColor={true}> {warning.message}</Text></Box>{warning.suggestion && <Box marginLeft={3}><Text dimColor={true}>→ {warning.suggestion}</Text></Box>}</Box>;
45}

Callers

nothing calls this directly

Calls 3

getKeybindingsPathFunction · 0.85

Tested by

no test coverage detected