import React, { Component } from 'react'
import PropTypes from 'prop-types'
import Select from 'react-select'
// Subviews
import JsonImportView from './json.js'
import PrivateKeyImportView from './private-key.js'
export default class AccountImportSubview extends Component {
static contextTypes = {
t: PropTypes.func,
}
state = {}
getMenuItemTexts () {
return [
this.context.t('privateKey'),
this.context.t('jsonFile'),
]
}
renderImportView () {
const { type } = this.state
const menuItems = this.getMenuItemTexts()
const current = type || menuItems[0]
switch (current) {
case this.context.t('privateKey'):
return