({store}: TablesProps)
| 63 | ); |
| 64 | |
| 65 | export const TablesActions = ({store}: TablesProps) => ( |
| 66 | <Actions |
| 67 | left={ |
| 68 | <ConfirmableActions |
| 69 | actions={[['add', 'Add table', AddTable]]} |
| 70 | store={store} |
| 71 | /> |
| 72 | } |
| 73 | right={ |
| 74 | useHasTables(store) ? ( |
| 75 | <ConfirmableActions |
| 76 | actions={[['delete', 'Delete all tables', DeleteTables]]} |
| 77 | store={store} |
| 78 | /> |
| 79 | ) : null |
| 80 | } |
| 81 | /> |
| 82 | ); |
| 83 | |
| 84 | // -- |
| 85 |
nothing calls this directly
no test coverage detected
searching dependent graphs…