'use strict'
/* @flow */

import React from 'react'
import BaseComponent from '../base-component'
import PinentryRender from './pinentry-render'

export default class Pinentry extends BaseComponent {
  render () {
    return <PinentryRender {...this.props} />
  }

  static parseRoute (store, currentPath, nextPath) {
    return {
      componentAtTop: {
        title: 'pinentry',
        props: {
          onSubmit: passphrase => console.log(`Passphrase submitted: ${passphrase}`),
          onCancel: () => console.log('Pinentry canceled'),
          // Temp until implemented.
          user: 'someusers'
        }
      }
    }
  }
}

'use strict'
/* @flow */

import React from 'react'
import BaseComponent from '../base-component'
import PinentryRender from './pinentry-render'

export default class Pinentry extends BaseComponent {
  render () {
    return <PinentryRender {...this.props} />
  }

  static parseRoute (store, currentPath, nextPath) {
    return {
      componentAtTop: {
        title: 'pinentry',
        props: {
          onSubmit: passphrase => console.log(`Passphrase submitted: ${passphrase}`),
          onCancel: () => console.log('Pinentry canceled'),
          // Temp until implemented.
          user: 'someusers'
        }
      }
    }
  }
}

Pinentry.propTypes = PinentryRender.propTypes

Define Pinentry propTypes in terms of PinentryRender
Define Pinentry propTypes in terms of PinentryRender
