
import enfj from './enfj.png'
import enfp from './enfp.png'
import entj from './entj.png'
import entp from './entp.png'
import esfj from './esfj.png'
import esfp from './enfp.png'
import estj from './entj.png'
import estp from './enfp.png'
import infj from './infj.png'
import infp from './infp.png'
import intj from './intj.png'
import intp from './intp.png'
import isfj from './isfj.png'
import isfp from './infp.png'
import istj from './intj.png'
import istp from './infp.png'

const mbtjImgMap = {
  enfj,
  enfp,
  entj,
  entp,
  esfj,
  esfp,
  estj,
  estp,
  infj,
  infp,
  intj,
  intp,
  isfj,
  isfp,
  istj,
  istp
}
const getMbtjImgPath = (code) => {
  const curImgPath = mbtjImgMap[String(code).substring(0, 4).toLocaleLowerCase()]
  if (curImgPath) return curImgPath
  return ''
}

export {
  enfj,
  enfp,
  entj,
  entp,
  esfj,
  esfp,
  estj,
  estp,
  infj,
  infp,
  intj,
  intp,
  isfj,
  isfp,
  istj,
  istp,
  getMbtjImgPath
}
