import React from 'react';
import { isEmptyTime } from '../../../utils/validate';
import FieldWrapper from '../FieldWrapper';
import withField from '../withField';
import TimePicker from './TimePicker'; // Date picker for redux-form using pikaday library

var FieldTime = function FieldTime(props) {
  var input = props.input,
      disabled = props.disabled;
  return React.createElement(FieldWrapper, props, React.createElement(TimePicker, {
    input: input,
    disabled: disabled
  }));
};

FieldTime.defaultProps = {
  disabled: false
};
var withReduxField = withField(isEmptyTime);
export default withReduxField(FieldTime);