import _TimePicker from "antd/es/time-picker";
import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["bordered", "value", "format"];
import * as React from 'react';
import moment from 'moment';
import { LocalFormat } from "./localHelper";
import "./index.less";
var antTimePicker = function antTimePicker(_ref) {
  var bordered = _ref.bordered,
    value = _ref.value,
    format = _ref.format,
    otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
  return /*#__PURE__*/React.createElement(_TimePicker, _extends({
    key: value,
    format: format,
    locale: LocalFormat.getDefinedChineseLocal(),
    value: value ? moment(value, format) : undefined,
    bordered: !bordered
  }, otherProps));
};
antTimePicker.displayName = 'antTimePicker';
export default antTimePicker;