import Typeahead from './core'

export default Typeahead
import React from 'react'
import Typeahead from './core'
import SelectableTypeahead from './selectable'

export default class PolymorphicTypeahead extends React.Component {
  render() {
    if(this.props.selectable) {
      return <SelectableTypeahead ref="t" {...this.props}/>
    }
    else {
      return <Typeahead ref="t" {...this.props}/>
    }
  }

  clear() {
    this.refs.t.clear()
  }
}
Make Typeaheads polymorphic on presence of "selectable" prop
Make Typeaheads polymorphic on presence of "selectable" prop
