"use strict";

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

var _dealAttachmentType = function _dealAttachmentType(fileType) {
  var IsImage = false;
  var FileType = fileType; // if (/^(jpg|png|gif|jpeg|image|JPG|PNG|GIF|JPEG)$/.test(fileType)) {
  //   IsImage = true;
  //   IconColor = '#44CF85';
  // } else if (/^(exe|pdf|txt|doc|docx|ppt|pptx|xls|xlsx)$/.test(fileType)) {
  //   IconColor = '#49B9DD';
  // } else if (/^(rar|zip)$/.test(fileType)) {
  //   IconColor = '#FFBA46';
  // } else if (/^(mp3|wma|wav|flac|ape|ogg|aac|m4a)$/.test(fileType)) {
  //   IconColor = '#8479D6';
  // } else if (/^(mp4|mkv|rm|rmvb|avi|3gp|flv|wmv|asf|mpeg|mpg|mov|ts|m4v)$/.test(fileType)) {
  //   IconColor = '#3EBBA8';
  // } else {
  //   FileType = 'none'
  // }

  if (/^(jpg|png|gif|jpeg|JPG|PNG|GIF|JPEG)$/.test(fileType)) {
    IsImage = true;
  }

  return {
    IsImage: IsImage,
    FileType: FileType
  };
};

exports._dealAttachmentType = _dealAttachmentType;