const React = require('react'); const ReactRedux = require('react-redux'); const PropTypes = require('@root/prop-types'); const selectors = require('@state/selectors'); const AddMetrics = require('../metrics/add-metrics'); const actions = require('@state/actions'); const { connect } = ReactRedux; const { metricsByServiceIdSelector, serviceByIdSelector } = selectors; const { addMetric } = actions; const Metrics = ({ addMetric, metrics, metricTypes, service }) => { const onAddMetric = (metric) => { addMetric({ id: metric, service: service.uuid }); }; return (
metrics