QueryRows.tsx 739 B

1234567891011121314151617181920212223242526272829
  1. // Libraries
  2. import React, { PureComponent } from 'react';
  3. // Components
  4. import QueryRow from './QueryRow';
  5. // Types
  6. import { Emitter } from 'app/core/utils/emitter';
  7. import { ExploreId } from 'app/types/explore';
  8. interface QueryRowsProps {
  9. className?: string;
  10. exploreEvents: Emitter;
  11. exploreId: ExploreId;
  12. queryKeys: string[];
  13. }
  14. export default class QueryRows extends PureComponent<QueryRowsProps> {
  15. render() {
  16. const { className = '', exploreEvents, exploreId, queryKeys } = this.props;
  17. return (
  18. <div className={className}>
  19. {queryKeys.map((key, index) => {
  20. return <QueryRow key={key} exploreEvents={exploreEvents} exploreId={exploreId} index={index} />;
  21. })}
  22. </div>
  23. );
  24. }
  25. }