({store}: ValuesProps)
| 55 | ); |
| 56 | |
| 57 | export const ValuesActions = ({store}: ValuesProps) => ( |
| 58 | <Actions |
| 59 | left={ |
| 60 | <ConfirmableActions |
| 61 | actions={[['add', 'Add value', AddValue]]} |
| 62 | store={store} |
| 63 | /> |
| 64 | } |
| 65 | right={ |
| 66 | useHasValues(store) ? ( |
| 67 | <ConfirmableActions |
| 68 | actions={[['delete', 'Delete all values', DeleteValues]]} |
| 69 | store={store} |
| 70 | /> |
| 71 | ) : null |
| 72 | } |
| 73 | /> |
| 74 | ); |
| 75 | |
| 76 | // -- |
| 77 |
nothing calls this directly
no test coverage detected
searching dependent graphs…