import TimePicker from 'antd/lib/time-picker'
import React, { useState } from 'react'

const TimePickerDesktop = (props: any) => {
  const [val, setVal] = useState<moment.Moment>()

  const onBlur = () => {
    if (val) {
      props?.onBlur(val)
    }
  }

  return <TimePicker {...props} onSelect={setVal} onBlur={onBlur} />
}

export default TimePickerDesktop
