import * as React from 'react'; import { connect } from 'react-redux'; import { Dispatch } from 'redux'; import { Button, MenuItem } from '@blueprintjs/core'; import { IconNames } from '@blueprintjs/icons'; import { IItemRendererProps, ItemPredicate, Select } from '@blueprintjs/select'; import { selectAndLoadInstance } from '../redux/actions'; import { IAppState, IInstance } from '../redux/types'; interface IInstanceSearchProps { currentInstanceName: string | null; instances?: IInstance[]; selectAndLoadInstance: (instanceName: string) => void; } const InstanceSelect = Select.ofType(); class InstanceSearchImpl extends React.Component { public render() { return (