"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.FormatDate = void 0;
var _react = _interopRequireDefault(require("react"));
var _useFormatDate = require("./useFormatDate");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var FormatDate = exports.FormatDate = function FormatDate(_ref) {
  var value = _ref.value,
    long = _ref.long,
    dateFormat = _ref.dateFormat;
  var formatter = (0, _useFormatDate.useFormatDate)(dateFormat);
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, formatter(value, long));
};
FormatDate.defaultProps = {
  long: true
};
//# sourceMappingURL=FormatDate.js.map