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

Function ValuesView

src/ui-solid-inspector/index.tsx:593–624  ·  view source on GitHub ↗
(
  props: ValuesProps & {readonly storeId?: Id} & StoreProp,
)

Source from the content-addressed store, hash-verified

591);
592
593const ValuesView = (
594 props: ValuesProps & {readonly storeId?: Id} & StoreProp,
595) => {
596 const uniqueId = getUniqueId('v', props.storeId);
597 const [editable, handleEditable] = useEditable(uniqueId, props.s);
598 const valueIds = useValueIds(props.store);
599 return Details({
600 uniqueId,
601 title: VALUES,
602 editable,
603 handleEditable,
604 s: props.s,
605 get children() {
606 return (
607 <>
608 {arrayIsEmpty(valueIds()) ? (
609 <p>No values.</p>
610 ) : (
611 <ValuesInHtmlTable
612 store={props.store}
613 editable={editable()}
614 extraCellsAfter={
615 (() => (editable() ? valueActions : [])) as unknown as []
616 }
617 />
618 )}
619 {editable() ? <ValuesActions store={props.store} /> : EMPTY_STRING}
620 </>
621 );
622 },
623 });
624};
625
626const TableView = (props: TableProps & {readonly storeId?: Id} & StoreProp) => {
627 const uniqueId = getUniqueId('t', props.storeId, props.tableId);

Callers

nothing calls this directly

Calls 4

getUniqueIdFunction · 0.90
useValueIdsFunction · 0.90
useEditableFunction · 0.70
DetailsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…