import { Phone, MapPin, Clock, Star, Info, Mail, Globe, Home, Heart, Shield, Award, Users, Building } from 'lucide-react';

const ICON_MAP = {
  Phone,
  MapPin,
  Clock,
  Star,
  Info,
  Mail,
  Globe,
  Home,
  Heart,
  Shield,
  Award,
  Users,
  Building,
};



export const getIcon = (name, props = {}) => {
const DEFAULT_ICON = Star; // fallback if null or unrecognized
  const IconComponent = ICON_MAP[name] ?? DEFAULT_ICON;
  return <IconComponent {...props} />;
};