(t0)
| 15 | setInputValue: (value: string) => void; |
| 16 | }; |
| 17 | export 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 | } |
| 47 | type ViewProps = { |
| 48 | skillName: string; |
| 49 | updates: SkillUpdate[]; |
nothing calls this directly
no test coverage detected