import React, { Component } from 'react' const inherits = require('util').inherits const PropTypes = require('prop-types') const connect = require('react-redux').connect import Select from 'react-select' // Subviews const JsonImportView = require('./json.js') const PrivateKeyImportView = require('./private-key.js') AccountImportSubview.contextTypes = { t: PropTypes.func, } module.exports = connect()(AccountImportSubview) inherits(AccountImportSubview, Component) function AccountImportSubview () { Component.call(this) } AccountImportSubview.prototype.getMenuItemTexts = function () { return [ this.context.t('privateKey'), this.context.t('jsonFile'), ] } AccountImportSubview.prototype.render = function () { const state = this.state || {} const menuItems = this.getMenuItemTexts() const { type } = state return (
{this.context.t('importAccountMsg')} { global.platform.openWindow({ url: 'https://metamask.zendesk.com/hc/en-us/articles/360015289932', }) }}> {this.context.t('here')}
{this.context.t('selectType')}