import React from 'react';
function ArrayToText(_ref) {
  var value = _ref.value;
  return /*#__PURE__*/React.createElement("div", null, value === null || value === void 0 ? void 0 : value.sort().map(function (item) {
    return dayToWeek(item);
  }).join(','));
}
export default ArrayToText;
function dayToWeek(value) {
  // tslint:disable-next-line: no-duplicate-case
  switch (value) {
    case 1:
      return '星期一';
      break;
    case 2:
      return '星期二';
      break;
    case 3:
      return '星期三';
      break;
    case 4:
      return '星期四';
      break;
    case 5:
      return '星期五';
      break;
    case 6:
      return '星期六';
      break;
    case 7:
      return '星期日';
      break;
  }
}