({s}: StoreProp)
| 3 | import {useSetValueCallback, useValue} from '../ui-react/index.ts'; |
| 4 | |
| 5 | export const Nub = ({s}: StoreProp) => { |
| 6 | const position = useValue(POSITION_VALUE, s) ?? 1; |
| 7 | const handleOpen = useSetValueCallback(OPEN_VALUE, () => true, [], s); |
| 8 | |
| 9 | return useValue(OPEN_VALUE, s) ? null : ( |
| 10 | <img onClick={handleOpen} title={TITLE} data-position={position} /> |
| 11 | ); |
| 12 | }; |
nothing calls this directly
no test coverage detected