(props: {readonly queriesId?: Id} & StoreProp)
| 920 | }; |
| 921 | |
| 922 | const QueriesView = (props: {readonly queriesId?: Id} & StoreProp) => { |
| 923 | const queries = useQueries(props.queriesId); |
| 924 | const queryIds = useQueryIds(queries); |
| 925 | return ( |
| 926 | <> |
| 927 | {isUndefined(queries()) ? ( |
| 928 | EMPTY_STRING |
| 929 | ) : ( |
| 930 | <Details |
| 931 | uniqueId={getUniqueId('q', props.queriesId)} |
| 932 | title={'Queries: ' + (props.queriesId ?? DEFAULT)} |
| 933 | s={props.s} |
| 934 | > |
| 935 | {arrayIsEmpty(queryIds()) |
| 936 | ? 'No queries defined' |
| 937 | : sortedIdsMap(queryIds(), (queryId) => ( |
| 938 | <QueryView |
| 939 | queries={queries()} |
| 940 | queriesId={props.queriesId} |
| 941 | queryId={queryId} |
| 942 | s={props.s} |
| 943 | /> |
| 944 | ))} |
| 945 | </Details> |
| 946 | )} |
| 947 | </> |
| 948 | ); |
| 949 | }; |
| 950 | |
| 951 | const RelationshipView = ( |
| 952 | props: { |
nothing calls this directly
no test coverage detected
searching dependent graphs…