mirror of
https://github.com/grafana/grafana.git
synced 2025-02-10 23:55:47 -06:00
30 lines
739 B
TypeScript
30 lines
739 B
TypeScript
// Libraries
|
|
import React, { PureComponent } from 'react';
|
|
|
|
// Components
|
|
import QueryRow from './QueryRow';
|
|
|
|
// Types
|
|
import { Emitter } from 'app/core/utils/emitter';
|
|
import { ExploreId } from 'app/types/explore';
|
|
|
|
interface QueryRowsProps {
|
|
className?: string;
|
|
exploreEvents: Emitter;
|
|
exploreId: ExploreId;
|
|
queryKeys: string[];
|
|
}
|
|
|
|
export default class QueryRows extends PureComponent<QueryRowsProps> {
|
|
render() {
|
|
const { className = '', exploreEvents, exploreId, queryKeys } = this.props;
|
|
return (
|
|
<div className={className}>
|
|
{queryKeys.map((key, index) => {
|
|
return <QueryRow key={key} exploreEvents={exploreEvents} exploreId={exploreId} index={index} />;
|
|
})}
|
|
</div>
|
|
);
|
|
}
|
|
}
|