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

Function EditableCellView

src/ui-react-dom/EditableCellView.tsx:8–26  ·  view source on GitHub ↗
({
  tableId,
  rowId,
  cellId,
  store,
  className,
  showType,
}: CellProps & {readonly className?: string; readonly showType?: boolean})

Source from the content-addressed store, hash-verified

6import {EDITABLE} from './common/index.tsx';
7
8export const EditableCellView: typeof EditableCellViewDecl = ({
9 tableId,
10 rowId,
11 cellId,
12 store,
13 className,
14 showType,
15}: CellProps & {readonly className?: string; readonly showType?: boolean}) => {
16 const [cell, setCell] = useCellState(tableId, rowId, cellId, store);
17 return (
18 <EditableThing
19 thing={cell}
20 onThingChange={setCell}
21 className={className ?? EDITABLE + CELL}
22 showType={showType}
23 hasSchema={useStoreOrStoreById(store)?.hasTablesSchema}
24 />
25 );
26};

Callers

nothing calls this directly

Calls 2

useCellStateFunction · 0.90
useStoreOrStoreByIdFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…