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

Function EditableValueView

src/ui-react-dom/EditableValueView.tsx:8–24  ·  view source on GitHub ↗
({
  valueId,
  store,
  className,
  showType,
}: ValueProps & {readonly className?: string; readonly showType?: boolean})

Source from the content-addressed store, hash-verified

6import {EDITABLE} from './common/index.tsx';
7
8export const EditableValueView: typeof EditableValueViewDecl = ({
9 valueId,
10 store,
11 className,
12 showType,
13}: ValueProps & {readonly className?: string; readonly showType?: boolean}) => {
14 const [value, setValue] = useValueState(valueId, store);
15 return (
16 <EditableThing
17 thing={value}
18 onThingChange={setValue}
19 className={className ?? EDITABLE + VALUE}
20 showType={showType}
21 hasSchema={useStoreOrStoreById(store)?.hasValuesSchema}
22 />
23 );
24};

Callers

nothing calls this directly

Calls 2

useValueStateFunction · 0.90
useStoreOrStoreByIdFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…