import React, { Component } from 'react'; import { Modal, ModalBody, ModalHeader } from 'reactstrap'; interface Props { show: boolean; updateShow(show: boolean): void; metrics: string[]; insertAtCursor(value: string): void; } class MetricsExplorer extends Component { handleMetricClick = (query: string) => { this.props.insertAtCursor(query); this.props.updateShow(false); }; toggle = () => { this.props.updateShow(!this.props.show); }; render() { return ( Metrics Explorer {this.props.metrics.map(metric => (

{metric}

))}
); } } export default MetricsExplorer;