\n {instanceMatches.map((instanceMatch) => {\n const matchArray = Array.from(instanceMatch.labelsMatch);\n let matchResult = matchArray.map(([label, matchResult]) => ({\n label: `${label[0]}=${label[1]}`,\n match: matchResult.match,\n colorIndex: matchResult.match ? getTagColorIndexFromName(label[0]) : GREY_COLOR_INDEX,\n }));\n\n const matchingLabels = matchResult.filter((mr) => mr.match);\n const nonMatchingLabels = matchResult.filter((mr) => !mr.match);\n\n return (\n
\n {matchArray.length > 0 ? (\n <>\n {matchingLabels.length > 0 ? (\n
mr.label)}\n className={styles.labelList}\n getColorIndex={(_, index) => matchingLabels[index].colorIndex}\n />\n ) : (\n No matching labels
\n )}\n \n mr.label)}\n className={styles.labelList}\n getColorIndex={(_, index) => nonMatchingLabels[index].colorIndex}\n />\n >\n ) : (\n No labels
\n )}\n \n );\n })}\n
\n