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

Function AddTable

src/ui-solid-inspector/index.tsx:337–350  ·  view source on GitHub ↗
(props: OnDoneProp & TablesProps)

Source from the content-addressed store, hash-verified

335);
336
337const AddTable = (props: OnDoneProp & TablesProps) => {
338 const has = useHasTableCallback(props.store);
339 return NewId({
340 onDone: props.onDone,
341 suggestedId: getNewIdFromSuggestedId('table', has),
342 has,
343 set: useSetTableCallback(
344 (newId: Id) => newId,
345 () => ({row: {cell: ''}}),
346 props.store,
347 ),
348 prompt: 'Add table',
349 });
350};
351
352const DeleteTables = (props: OnDoneProp & TablesProps) =>
353 Delete({

Callers

nothing calls this directly

Calls 4

getNewIdFromSuggestedIdFunction · 0.90
useSetTableCallbackFunction · 0.90
useHasTableCallbackFunction · 0.70
NewIdFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…