import React, { FC } from 'react'; import { Alert } from 'app/types/unified-alerting'; import { AnnotationDetailsField } from '../AnnotationDetailsField'; import { DetailsField } from '../DetailsField'; interface Props { instance: Alert; } export const AlertInstanceDetails: FC = ({ instance }) => { const annotations = (Object.entries(instance.annotations || {}) || []).filter(([_, value]) => !!value.trim()); return (
{instance.value && ( {instance.value} )} {annotations.map(([key, value]) => ( ))}
); };