{
+ e.stopPropagation();
+ focusRef.current?.focus();
+ }}
+ >
+
+
{t('grafana-scenes.components.group-by-pill.prefix', 'Group by:')}
+ {values.map((val, idx) => {
+ const label = texts[idx] ?? val;
+ const applicability = keysApplicability?.find((item: DrilldownsApplicability) => item.key === val);
+ const isNonApplicable = applicability && !applicability.applicable;
+
+ return (
+
+ {label}
+ {!readOnly && (
+ {
+ e.stopPropagation();
+ onRemoveValue(val);
+ focusRef.current?.focus();
+ }}
+ name="times"
+ size="sm"
+ className={styles.chipCloseIcon}
+ tooltip={t('grafana-scenes.components.group-by-pill.remove-value', 'Remove {{label}}', { label })}
+ />
+ )}
+
+ );
+ })}
+