"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.valueFormat = void 0;
var _locale = require("@mirai/locale");
var _constants = require("./constants");
const valueFormat = function () {
  let [from, to] = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  return [from ? (0, _locale.dateFormat)(from, {
    format: _constants.CALENDAR_FORMAT
  }) : undefined, to ? (0, _locale.dateFormat)(to, {
    format: _constants.CALENDAR_FORMAT
  }) : undefined];
};
exports.valueFormat = valueFormat;
//# sourceMappingURL=valueFormat.js.map