MCPcopy Index your code
hub / github.com/tinyplex/tinybase / Nub

Function Nub

src/ui-solid-inspector/index.tsx:1036–1053  ·  view source on GitHub ↗
(props: StoreProp)

Source from the content-addressed store, hash-verified

1034};
1035
1036const 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
1055const Body = (props: StoreProp) => {
1056 let article: HTMLElement | undefined;

Callers

nothing calls this directly

Calls 1

useValueFunction · 0.90

Tested by

no test coverage detected