import { Star, Wind, Anchor, Utensils, BedDouble, Sun, Waves, Bike, Coffee, Music, MapPin, Camera, Heart, Compass, Fish, Mountain, Dumbbell, Leaf, Shield, Umbrella, Flame, type LucideIcon, } from "lucide-react"; const ICON_MAP: Record = { Wind, Anchor, Utensils, BedDouble, Sun, Star, Waves, Bike, Coffee, Music, MapPin, Camera, Heart, Compass, Fish, Mountain, Dumbbell, Leaf, Shield, Umbrella, Flame, }; interface Feature { icon: string | null; label: string; sub: string; } interface FeaturesStripProps { features: Feature[]; } export default function FeaturesStrip({ features }: FeaturesStripProps) { return (
{features.map(({ icon, label, sub }, i) => { const IconComponent = ICON_MAP[icon as string] || Star; return (
= 2 ? "hidden md:flex" : ""}`} > {label} {sub}
); })}
); }