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

Function AddTable

src/ui-react-inspector/actions/tables.tsx:40–56  ·  view source on GitHub ↗
({onDone, store}: OnDoneProp & TablesProps)

Source from the content-addressed store, hash-verified

38};
39
40const AddTable = ({onDone, store}: OnDoneProp & TablesProps) => {
41 const has = useHasTableCallback(store);
42 return (
43 <NewId
44 onDone={onDone}
45 suggestedId={getNewIdFromSuggestedId('table', has)}
46 has={has}
47 set={useSetTableCallback(
48 (newId: Id) => newId,
49 () => ({row: {cell: ''}}),
50 [],
51 store,
52 )}
53 prompt="Add table"
54 />
55 );
56};
57
58const DeleteTables = ({onDone, store}: OnDoneProp & TablesProps) => (
59 <Delete

Callers

nothing calls this directly

Calls 3

getNewIdFromSuggestedIdFunction · 0.90
useSetTableCallbackFunction · 0.90
useHasTableCallbackFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…