MCPcopy Create free account
hub / github.com/tinyplex/tinybase / AddTable

Function AddTable

docs/pseudo.esm.sh/tinybase@9.0.0/ui-solid-inspector/index.js:4369–4386  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

4367 return _el$1;
4368})();
4369var AddTable = (props) => {
4370 const has = useHasTableCallback(props.store);
4371 return NewId({
4372 onDone: props.onDone,
4373 suggestedId: getNewIdFromSuggestedId("table", has),
4374 has,
4375 set: useSetTableCallback(
4376 (newId) => newId,
4377 () => ({
4378 row: {
4379 cell: ""
4380 }
4381 }),
4382 props.store
4383 ),
4384 prompt: "Add table"
4385 });
4386};
4387var DeleteTables = (props) => Delete({
4388 onClick: useDelTablesCallback(props.store, props.onDone),
4389 prompt: "Delete all tables"

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…