(
props: ValuesProps & {readonly storeId?: Id} & StoreProp,
)
| 591 | ); |
| 592 | |
| 593 | const ValuesView = ( |
| 594 | props: ValuesProps & {readonly storeId?: Id} & StoreProp, |
| 595 | ) => { |
| 596 | const uniqueId = getUniqueId('v', props.storeId); |
| 597 | const [editable, handleEditable] = useEditable(uniqueId, props.s); |
| 598 | const valueIds = useValueIds(props.store); |
| 599 | return Details({ |
| 600 | uniqueId, |
| 601 | title: VALUES, |
| 602 | editable, |
| 603 | handleEditable, |
| 604 | s: props.s, |
| 605 | get children() { |
| 606 | return ( |
| 607 | <> |
| 608 | {arrayIsEmpty(valueIds()) ? ( |
| 609 | <p>No values.</p> |
| 610 | ) : ( |
| 611 | <ValuesInHtmlTable |
| 612 | store={props.store} |
| 613 | editable={editable()} |
| 614 | extraCellsAfter={ |
| 615 | (() => (editable() ? valueActions : [])) as unknown as [] |
| 616 | } |
| 617 | /> |
| 618 | )} |
| 619 | {editable() ? <ValuesActions store={props.store} /> : EMPTY_STRING} |
| 620 | </> |
| 621 | ); |
| 622 | }, |
| 623 | }); |
| 624 | }; |
| 625 | |
| 626 | const TableView = (props: TableProps & {readonly storeId?: Id} & StoreProp) => { |
| 627 | const uniqueId = getUniqueId('t', props.storeId, props.tableId); |
nothing calls this directly
no test coverage detected
searching dependent graphs…