import { css } from '@emotion/css'; import React, { FC } from 'react'; import { TagList, useStyles2 } from '@grafana/ui'; import { Matcher } from 'app/plugins/datasource/alertmanager/types'; import { matcherToOperator } from '../../utils/alertmanager'; type MatchersProps = { matchers: Matcher[] }; export const Matchers: FC = ({ matchers }) => { const styles = useStyles2(getStyles); return (
`${matcher.name}${matcherToOperator(matcher)}${matcher.value}`)} />
); }; const getStyles = () => ({ tags: css` justify-content: flex-start; `, });