import type { ComponentType } from 'react';
import { 
  Home, LogOut, Users, FileText, Building,
  Settings, CalendarPlus, DollarSign, Briefcase, CalendarClock,
  UserCheck, Repeat, Wallet, ClipboardList, ListChecks,
  ShoppingCart, ShoppingBag, Package, Cog, ClipboardCheck, BarChart2, Store
} from 'lucide-react';

const iconMap: Record<string, ComponentType<{ className?: string }>> = {
  Home,
  LogOut,
  Users,
  FileText,
  Building,
  Settings,
  CalendarPlus,
  DollarSign,
  Briefcase,
  CalendarClock,
  UserCheck,
  Repeat,
  Wallet,
  ClipboardList,
  ClipboardCheck,
  ListChecks,
  ShoppingCart,
  ShoppingBag,
  Store,
  Package,
  Cog,
  BarChart2,
};

export function getIconComponent(iconName: string) {
  return iconMap[iconName] || Building;
}
