import React, { Component } from "react"; import PropTypes from "prop-types"; import { observer } from "mobx-react"; import { AlertStore } from "Stores/AlertStore"; import { LabelWithPercent } from "Components/Labels/LabelWithPercent"; const LabelsTable = observer(({ alertStore }) => ( {alertStore.data.counters.map(nameStats => ( ))}
{nameStats.hits} {nameStats.name} {nameStats.values.slice(0, 9).map((valueStats, i) => ( f.raw === valueStats.raw ).length > 0 } /> ))} {nameStats.values.length > 9 ? (
+{nameStats.values.length - 9} more
) : null}
)); const NothingToShow = () => (

No labels to display

); const OverviewModalContent = observer( class OverviewModalContent extends Component { static propTypes = { alertStore: PropTypes.instanceOf(AlertStore).isRequired, onHide: PropTypes.func.isRequired }; render() { const { alertStore, onHide } = this.props; return (
Overview
{alertStore.data.counters.length === 0 ? ( ) : ( )}
); } } ); export { OverviewModalContent };