"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _react = _interopRequireDefault(require("react"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function CreateDate(_ref) {
  var createDate = _ref.createDate;
  var date = new Date(createDate.replace(/-/g, "/").split("T").join(" ").split(".")[0]);
  return /*#__PURE__*/_react["default"].createElement("div", null, createDate ? "".concat(date.getFullYear(), "-").concat(date.getMonth() + 1, "-").concat(date.getDate()) : "-");
}

var _default = CreateDate;
exports["default"] = _default;