
const lossMap = {
  COLLAPSE_LOSS: {
    title: '塌方损失信息',
    itemName: '塌方',
    calc: 'cube',
  },
  RETAINING_WALL_LOSS: {
    title: '挡墙损失信息',
    itemName: '挡墙',
    calc: 'cube',
  },
  ROADBED_LOSS: {
    title: '路基损失信息',
    itemName: '路基',
    calc: 'cube',
  },
  PAVEMENT_LOSS: {
    title: '路面损失信息',
    itemName: '路面',
    calc: 'cube',
  },
  SLOPE_PROTECTION_LOSS: {
    title: '护坡损失信息',
    itemName: '护坡',
    calc: 'cube',
  },
  BRIDGE_LOSS: {
    title: '桥梁损失信息',
    itemName: '桥梁',
    calc: 'cube',
  },
  TUNNEL_LOSS: {
    title: '隧道损失信息',
    itemName: '隧道',
    calc: 'length'
  },
  CULVERT_LOSS: {
    title: '涵洞损失信息',
    itemName: '涵洞',
    calc: 'length'
  }
}

export const getLossItem = (code) => {
  return lossMap[code]
}