/*
 * @Author: 吴文洁
 * @Date: 2020-09-29 10:01:08
 * @LastEditors: wufan
 * @LastEditTime: 2020-12-10 10:50:19
 * @Description: 
 * @Copyright: 杭州杰竞科技有限公司 版权所有
 */
import { SUFFIX_MAP } from '@/domains/resource-disk/constants';

const getFileTypeByName = (name: string) => {
  const nameArray: string[] = name.split(".");
  const suffix: string = nameArray[nameArray.length - 1];
  return SUFFIX_MAP[suffix];
}

export {
  getFileTypeByName
};