import React from 'react'; import SelectArray from './SelectArray'; import { bindActionCreators } from 'redux'; import * as actions from '../actions/exploreActions'; import { connect } from 'react-redux'; import { timestampOptions, rowLimitOptions } from '../constants'; const propTypes = { actions: React.PropTypes.object, timeStampFormat: React.PropTypes.string, rowLimit: React.PropTypes.number, }; const defaultProps = { timeStampFormat: null, rowLimit: null, }; const Options = (props) => { const selects = [ { key: 'timeStampFormat', title: 'Timestamp Format', options: timestampOptions.map((t) => ({ value: t[0], label: t[1] })), value: props.timeStampFormat, width: '12', }, { key: 'rowLimit', title: 'Row Limit', options: rowLimitOptions.map((r) => ({ value: r, label: r })), value: props.rowLimit, width: '12', }]; return (