({
store,
storeId,
s,
}: ValuesProps & {readonly storeId?: Id} & StoreProp)
| 13 | const valueActions = [{label: '', component: ValueActions}]; |
| 14 | |
| 15 | export const ValuesView = ({ |
| 16 | store, |
| 17 | storeId, |
| 18 | s, |
| 19 | }: ValuesProps & {readonly storeId?: Id} & StoreProp) => { |
| 20 | const uniqueId = getUniqueId('v', storeId); |
| 21 | const [editable, handleEditable] = useEditable(uniqueId, s); |
| 22 | return ( |
| 23 | <Details |
| 24 | uniqueId={uniqueId} |
| 25 | title={VALUES} |
| 26 | editable={editable} |
| 27 | handleEditable={handleEditable} |
| 28 | s={s} |
| 29 | > |
| 30 | {arrayIsEmpty(useValueIds(store)) ? ( |
| 31 | <p>No values.</p> |
| 32 | ) : ( |
| 33 | <ValuesInHtmlTable |
| 34 | store={store} |
| 35 | editable={editable} |
| 36 | extraCellsAfter={editable ? valueActions : []} |
| 37 | /> |
| 38 | )} |
| 39 | {editable ? <ValuesActions store={store} /> : null} |
| 40 | </Details> |
| 41 | ); |
| 42 | }; |
nothing calls this directly
no test coverage detected
searching dependent graphs…