import { Price, PriceValue } from "@/components/shadcnblocks/price"; import { Rating } from "@/components/shadcnblocks/rating"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { cn } from "@/lib/utils"; interface ProductPrice { regular: number; sale?: number; currency: string; } interface Product { name: string; brand: string; rate: number; image: { src: string; alt: string; }; link: string; price: ProductPrice; } const PRODUCT_CARD: Product = { image: { src: "/block-media/shadcnblocks/block/ecommerce/clothes/Sporty-Casual-Portrait-1.png", alt: "تاپ کراپ صورتی با طراحی شیک", }, name: "تاپ کراپ رز", brand: "آتلیه رز", link: "#", price: { regular: 590000.0, currency: "ریال", }, rate: 5, }; interface ProductCard4Props { className?: string; } const ProductCard4 = ({ className }: ProductCard4Props) => { const { regular, sale, currency } = PRODUCT_CARD.price; return (
{PRODUCT_CARD.image.alt}
{PRODUCT_CARD.brand}
{PRODUCT_CARD.name}
); }; export { ProductCard4 };