import CONSTANTS from "../config/constants";

const getKycStatusName = (type: number) => {
  if (Number(type) === CONSTANTS.KYC_STATUS.PENDING) return "Pending";
  else if (Number(type) === CONSTANTS.KYC_STATUS.ID_UPLOADED || Number(type) === CONSTANTS.KYC_STATUS.PERSONAL_INFO) 
    return "Aadhaar card verified and personal information uploaded";
  else if (Number(type) === CONSTANTS.KYC_STATUS.SELFI_UPLOADED)
    return "Aadhaar card verified, personal information and selfi uploaded";
  else if (Number(type) === CONSTANTS.KYC_STATUS.RENT_AGREEMENT_DONE)
    return "Id verified, personal information and selfi uploaded and rent agreement signed";
  else if (Number(type) === CONSTANTS.KYC_STATUS.PAN_VERIFICATION_DONE)
    return "Aadhaar card and PAN verified, personal details uploaded and rent agreement signed";
  else if (Number(type) === CONSTANTS.KYC_STATUS.POLICE_VERIFICATION_DONE) "Aadhaar card and PAN verified, personal details uploaded, police verification done and rent agreement signed";
  else return ""
};

export default getKycStatusName;