MCPcopy Create free account
hub / github.com/codeaashu/claude-code / SkillImprovementSurvey

Function SkillImprovementSurvey

src/components/SkillImprovementSurvey.tsx:17–46  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

15 setInputValue: (value: string) => void;
16};
17export function SkillImprovementSurvey(t0) {
18 const $ = _c(6);
19 const {
20 isOpen,
21 skillName,
22 updates,
23 handleSelect,
24 inputValue,
25 setInputValue
26 } = t0;
27 if (!isOpen) {
28 return null;
29 }
30 if (inputValue && !isValidResponseInput(inputValue)) {
31 return null;
32 }
33 let t1;
34 if ($[0] !== handleSelect || $[1] !== inputValue || $[2] !== setInputValue || $[3] !== skillName || $[4] !== updates) {
35 t1 = <SkillImprovementSurveyView skillName={skillName} updates={updates} onSelect={handleSelect} inputValue={inputValue} setInputValue={setInputValue} />;
36 $[0] = handleSelect;
37 $[1] = inputValue;
38 $[2] = setInputValue;
39 $[3] = skillName;
40 $[4] = updates;
41 $[5] = t1;
42 } else {
43 t1 = $[5];
44 }
45 return t1;
46}
47type ViewProps = {
48 skillName: string;
49 updates: SkillUpdate[];

Callers

nothing calls this directly

Calls 1

isValidResponseInputFunction · 0.50

Tested by

no test coverage detected