import { ModalForm } from '@ant-design/pro-form'
import React from 'react'
import { Button } from 'antd'

const LockRecover = props => {
  const { onConfirm } = props
  const layout = {
    layout: 'vertical'
  }
  return (
    <div>
      <ModalForm
        width={500}
        {...layout}
        title="确认收回"
        trigger={
          <Button type="primary" ghost size="small" className="zh-mg-right-3">
            收回
          </Button>
        }
        onFinish={async values => {
          await onConfirm(values)
          return true
        }}>
        <div>
          收回锁号<b>HNYH-0654</b>
        </div>
      </ModalForm>
    </div>
  )
}

export default LockRecover
