forked from grafana.jool/grafana-jool
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
514 B
19 lines
514 B
import React from 'react';
|
|
import { GraphiteSegment } from '../types';
|
|
import { GraphiteQueryEditorState } from '../state/store';
|
|
import { MetricSegment } from './MetricSegment';
|
|
|
|
type Props = {
|
|
segments: GraphiteSegment[];
|
|
state: GraphiteQueryEditorState;
|
|
};
|
|
|
|
export function MetricsSection({ segments = [], state }: Props) {
|
|
return (
|
|
<>
|
|
{segments.map((segment, index) => {
|
|
return <MetricSegment segment={segment} metricIndex={index} key={index} state={state} />;
|
|
})}
|
|
</>
|
|
);
|
|
}
|
|
|