(props: {readonly indexesId?: Id} & StoreProp)
| 855 | ); |
| 856 | |
| 857 | const IndexesView = (props: {readonly indexesId?: Id} & StoreProp) => { |
| 858 | const indexes = useIndexes(props.indexesId); |
| 859 | const indexIds = useIndexIds(indexes); |
| 860 | return ( |
| 861 | <> |
| 862 | {isUndefined(indexes()) ? ( |
| 863 | EMPTY_STRING |
| 864 | ) : ( |
| 865 | <Details |
| 866 | uniqueId={getUniqueId('i', props.indexesId)} |
| 867 | title={'Indexes: ' + (props.indexesId ?? DEFAULT)} |
| 868 | s={props.s} |
| 869 | > |
| 870 | {arrayIsEmpty(indexIds()) |
| 871 | ? 'No indexes defined' |
| 872 | : sortedIdsMap(indexIds(), (indexId) => ( |
| 873 | <IndexView |
| 874 | indexes={indexes()} |
| 875 | indexesId={props.indexesId} |
| 876 | indexId={indexId} |
| 877 | s={props.s} |
| 878 | /> |
| 879 | ))} |
| 880 | </Details> |
| 881 | )} |
| 882 | </> |
| 883 | ); |
| 884 | }; |
| 885 | |
| 886 | const QueryView = ( |
| 887 | props: { |
nothing calls this directly
no test coverage detected
searching dependent graphs…