/**
 * ResignReasonForm component
 *
 * Generated by coz on 11/6/2016,
 * from a template provided by apeman-asset-templates.
 *
 * @function ResignReasonForm
 */
'use strict'

import React from 'react'
import defineDebug from 'debug'
import { ApResignReasonForm } from 'apeman-react-handy'

import { asLocaled, combine } from '../../wrappers'

const debug = defineDebug('project:fragment:resign-reason-form')

/** @lends ResignReasonForm */
const ResignReasonForm = ({ values, onUpdate, onSubmit, onCancel }) => (
  <ApResignReasonForm className='resign-reason-form'
                      labels={ {
                        title: l('leads.REASON_TO_RESIGN'),
                        message: l('messages.RESIGN_REASON'),
                        submit: l('buttons.DO_RESIGN'),
                        cancel: l('buttons.DO_BACK')
                      } }
                      { ...{ values, onUpdate, onSubmit, onCancel } }
  />
)

export default combine(
  asLocaled.proxy()
)(ResignReasonForm)
