import { StaticImageData } from "next/image";
import BOI from "@/app/image/bank_logo/BOI.jpg";
import hdfc from "@/app/image/bank_logo/hdfc.jpg";
import sbi from "@/app/image/bank_logo/sbi.jpg";
import icici from "@/app/image/bank_logo/icici.jpg";
import pnb from "@/app/image/bank_logo/pnb.jpg";
import axis from "@/app/image/bank_logo/axis.jpg";
import kccb from "@/app/image/bank_logo/kccb.jpg";
import logo from "@/app/image/bank_logo/bank.jpg";
 
export function getBankLogo(bankName: string): StaticImageData {
  if (!bankName) return logo;
 
  const upperName = bankName.toUpperCase();
 
  if (upperName.startsWith("HDFC")) return hdfc;
  if (upperName.startsWith("SBI") || upperName.startsWith("STATE BANK")) return sbi;
  if (upperName.startsWith("ICICI")) return icici;
  if (upperName.startsWith("PNB") || upperName.startsWith("PUNJAB NATIONAL")) return pnb;
  if (upperName.startsWith("AXIS")) return axis;
  if (upperName.startsWith("THE KANGRA CENTRAL")) return kccb;
  if (upperName.startsWith("BANK OF INDIA") || upperName.startsWith("BOI")) return BOI;
 
  return logo;
}
 