import { ImageSourcePropType } from "react-native";

const PROVIDER_LOGOS: Record<string, ImageSourcePropType> = {
  telebirr: require("@/assets/telebirr.png"),
  cbe: require("@/assets/cbe.png"),
  dashen: require("@/assets/dashen.png"),
};

export function getProviderLogo(paymentMethod: string): ImageSourcePropType | null {
  return PROVIDER_LOGOS[paymentMethod.toLowerCase()] ?? null;
}

export function isCash(paymentMethod: string): boolean {
  return paymentMethod.toLowerCase() === "cash";
}
