import type { LucideIcon } from "lucide-react"; import { Gift, Headphones, RefreshCw } from "lucide-react"; import { Carousel, CarouselContent, CarouselItem, } from "@/components/ui/carousel"; import { cn } from "@/lib/utils"; type Incentive = { title: string; icon: LucideIcon; text: string; id: string; }; type IncentivesSection = { list: Incentive[]; title: string; }; interface Incentives2Props extends IncentivesSection { className?: string; } const INCENTIVES_SECTION: IncentivesSection = { title: "خدمات مطمئن، خرید آسان", list: [ { id: "1", title: "پشتیبانی فنی", text: "هفت روز هفته، پشتیبانی ۲۴ ساعته", icon: Headphones, }, { id: "2", title: "تعویض سریع", text: "پردازش مرجوعی تا ۶۰ روز", icon: RefreshCw, }, { id: "3", title: "بسته‌بندی ویژه", text: "بسته‌بندی رایگان برای خریدهای بالای ۱۰۰ ریال", icon: Gift, }, ], }; const Incentives2 = ({ list = INCENTIVES_SECTION.list, title = INCENTIVES_SECTION.title, className, }: Incentives2Props) => { return (

{title}

{list.map(({ title, icon: Icon, text, id }) => (

{title}

{text}

))}
); }; export { Incentives2 };