"use client"; import Autoplay from "embla-carousel-autoplay"; import { Price, type PriceType, PriceValue, } from "@/components/shadcnblocks/price"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, } from "@/components/ui/carousel"; import { cn } from "@/lib/utils"; type Product = { image: string; name: string; href: string; price: PriceType; }; interface HeroData { backgroundImage: string; title: string; subtitle: string; description: string; products: Product[]; cta: { label: string; href: string; }; } type ProductCardProps = Product; interface EcommerceHero3Props extends HeroData { className?: string; } const HERO_DATA: HeroData = { backgroundImage: "/block-media/shadcnblocks/block/ecommerce/furniture/Cozy-Christmas-Living-Room-2.png", title: "گرما و استایل برای هر فضای زندگی", subtitle: "مجموعه مبلمان", description: "مبلمان و روشنایی با طراحی دقیق را کشف کنید که راحتی، تعادل و ظرافت مدرن را به خانه‌تان می‌آورند.", cta: { label: "مشاهده مجموعه", href: "#", }, products: [ { image: "/block-media/shadcnblocks/block/ecommerce/furniture/Modern-Artistic-Lamp-1.png", name: "چراغ رومیزی هنری مدرن", href: "#", price: { regular: 100, currency: "IRR", }, }, { image: "/block-media/shadcnblocks/block/ecommerce/furniture/Minimalist-Wooden-Sideboard-1.png", name: "کنسول چوبی مینیمال", href: "#", price: { regular: 100, currency: "IRR", }, }, { image: "/block-media/shadcnblocks/block/ecommerce/furniture/Minimalist-Interior-with-Sculptural-Element-1.png", name: "چراغ تزئینی مجسمه‌ای", href: "#", price: { regular: 100, currency: "IRR", }, }, { image: "/block-media/shadcnblocks/block/ecommerce/furniture/Modern-Wooden-Cabinet-1.png", name: "کابینت چوبی مدرن", href: "#", price: { regular: 100, currency: "IRR", }, }, ], }; const EcommerceHero3 = ({ className, backgroundImage = HERO_DATA.backgroundImage, products = HERO_DATA.products, title = HERO_DATA.title, subtitle = HERO_DATA.subtitle, description = HERO_DATA.description, cta = HERO_DATA.cta, }: EcommerceHero3Props) => { return (

{subtitle}

{title}

{description}

{products.map((product, index) => ( ))}
); }; const ProductCard = ({ image, name, price }: ProductCardProps) => { const { regular, sale, currency } = price; return ( {name}
{name}
); }; export { EcommerceHero3 };