MCPcopy
hub / github.com/tinyplex/tinybase / ValuesView

Function ValuesView

src/ui-react-inspector/ValuesView.tsx:15–42  ·  view source on GitHub ↗
({
  store,
  storeId,
  s,
}: ValuesProps & {readonly storeId?: Id} & StoreProp)

Source from the content-addressed store, hash-verified

13const valueActions = [{label: '', component: ValueActions}];
14
15export const ValuesView = ({
16 store,
17 storeId,
18 s,
19}: ValuesProps & {readonly storeId?: Id} & StoreProp) => {
20 const uniqueId = getUniqueId('v', storeId);
21 const [editable, handleEditable] = useEditable(uniqueId, s);
22 return (
23 <Details
24 uniqueId={uniqueId}
25 title={VALUES}
26 editable={editable}
27 handleEditable={handleEditable}
28 s={s}
29 >
30 {arrayIsEmpty(useValueIds(store)) ? (
31 <p>No values.</p>
32 ) : (
33 <ValuesInHtmlTable
34 store={store}
35 editable={editable}
36 extraCellsAfter={editable ? valueActions : []}
37 />
38 )}
39 {editable ? <ValuesActions store={store} /> : null}
40 </Details>
41 );
42};

Callers

nothing calls this directly

Calls 4

getUniqueIdFunction · 0.90
useEditableFunction · 0.90
arrayIsEmptyFunction · 0.90
useValueIdsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…