interface StepItem {
  title: string;
}

type StatusStr = '1' | '2' | '3' | '4' | '5';

export interface TicketDetailText {
  stepItems: Array<StepItem>;
  createTicketMessage: string;
  statusModifyPrefix: string;
  statusModifyMessage: Map<StatusStr, string>;
  descTitle: string;
  tookAway: string;
  addNote: string;
}

export const ticketDetailZhCn: TicketDetailText = {
  stepItems: [
    { title: '创建成功' },
    { title: '维修中' },
    { title: '待取回' },
    { title: '工单完成' },
  ],
  createTicketMessage: '创建了维修',
  statusModifyPrefix: '将维修状态更改为：',
  statusModifyMessage: new Map<StatusStr, string>([
    ['1', '维修中'],
    ['2', '2(?)'],
    ['3', '3(?)'],
    ['4', '维修成功待取回'],
    ['5', '维修成功已取回'],
  ]),
  descTitle: '问题描述',
  tookAway: '已取回',
  addNote: '添加评论',
};

export const ticketDetailEnUs: TicketDetailText = {
  stepItems: [
    { title: 'Ticket created' },
    { title: 'Repairing' },
    { title: 'Take home' },
    { title: 'Finished' },
  ],
  createTicketMessage: 'Created ticket',
  statusModifyPrefix: 'Modified repair status to: ',
  statusModifyMessage: new Map<StatusStr, string>([
    ['1', 'Repairing'],
    ['2', '2(?)'],
    ['3', '3(?)'],
    ['4', 'Device to be taken home'],
    ['5', 'Ticket finished'],
  ]),
  descTitle: 'Problem description',
  tookAway: 'Already took home',
  addNote: 'Add a comment',
};
