(storeOrStoreId: StoreOrStoreId | undefined)
| 30 | } from './common.tsx'; |
| 31 | |
| 32 | const useHasTableCallback = (storeOrStoreId: StoreOrStoreId | undefined) => { |
| 33 | const store = useStoreOrStoreById(storeOrStoreId); |
| 34 | return useCallback( |
| 35 | (tableId: Id) => store?.hasTable(tableId) ?? false, |
| 36 | [store], |
| 37 | ); |
| 38 | }; |
| 39 | |
| 40 | const AddTable = ({onDone, store}: OnDoneProp & TablesProps) => { |
| 41 | const has = useHasTableCallback(store); |
no test coverage detected
searching dependent graphs…