(props: StoreProp)
| 1034 | }; |
| 1035 | |
| 1036 | const Nub = (props: StoreProp) => { |
| 1037 | const position = useValue(POSITION_VALUE, props.s); |
| 1038 | const open = useValue(OPEN_VALUE, props.s); |
| 1039 | const handleOpen = () => props.s.setValue(OPEN_VALUE, true); |
| 1040 | return ( |
| 1041 | <> |
| 1042 | {open() ? ( |
| 1043 | EMPTY_STRING |
| 1044 | ) : ( |
| 1045 | <img |
| 1046 | onClick={handleOpen} |
| 1047 | title={TITLE} |
| 1048 | data-position={position() ?? 1} |
| 1049 | /> |
| 1050 | )} |
| 1051 | </> |
| 1052 | ); |
| 1053 | }; |
| 1054 | |
| 1055 | const Body = (props: StoreProp) => { |
| 1056 | let article: HTMLElement | undefined; |
nothing calls this directly
no test coverage detected