import {
  IconAlertCircle,
  IconCar,
  IconCreditCard,
  IconDots,
  IconHome,
  IconSchool,
  IconShoppingBag,
  IconShoppingCart,
  IconStethoscope,
} from '@material-hu/icons/tabler';

import { type MICROLOANS_ADVANCE_REASON_OPTIONS } from '../constants';

export type MicroloanAdvanceReasonId =
  (typeof MICROLOANS_ADVANCE_REASON_OPTIONS)[number]['id'];

export const ADVANCE_REASON_LIST_ICON: Record<
  MicroloanAdvanceReasonId,
  typeof IconHome
> = {
  health: IconStethoscope,
  rent: IconHome,
  groceries: IconShoppingCart,
  school: IconSchool,
  transport: IconCar,
  debt: IconCreditCard,
  emergency: IconAlertCircle,
  personal: IconShoppingBag,
  other: IconDots,
};
