"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=TodayButton;var _react=require("react"),React=_interopRequireWildcard(_react),_util=require("../util/");function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function TodayButton(e){var t=e.prefixCls,r=e.locale,a=e.value,l=e.timePicker,o=e.disabled,i=e.disabledDate,u=e.onToday,d=e.text,n=(!d&&l?r.now:d)||r.today,c=i&&!(0,_util.isAllowedDate)((0,_util.getTodayTime)(a),i,null)||o,s=c?t+"-today-btn-disabled":"";return React.createElement("a",{className:t+"-today-btn "+s,role:"button",onClick:c?null:u,title:(0,_util.getTodayTimeStr)(a)},n)}module.exports=exports.default;