1234567891011121314 |
- import React from 'react';
- import { TagList } from '@grafana/ui';
- type Props = { labels: Record<string, string>; className?: string };
- export const AlertLabels = ({ labels, className }: Props) => {
- const pairs = Object.entries(labels).filter(([key]) => !(key.startsWith('__') && key.endsWith('__')));
- return (
- <div className={className}>
- <TagList tags={Object.values(pairs).map(([label, value]) => `${label}=${value}`)} />
- </div>
- );
- };
|