"use client" import { Card, CardContent, CardFooter } from "@/components/ui/card" import { Badge } from "@/components/ui/badge" import { Button } from "@/components/ui/button" import { Input } from "@/components/ui/input" import { Slider } from "@/components/ui/slider" import { Checkbox } from "@/components/ui/checkbox" import { useMaterial } from "@/contexts/material-context" import { cn } from "@/lib/utils" import { Search, ShoppingCart, Heart, User, Menu, Filter, Star, StarHalf, ChevronDown } from "lucide-react" export function EcommerceExample() { const { selectedMaterial, getThemeAwareClass } = useMaterial() const materialClass = selectedMaterial ? getThemeAwareClass(selectedMaterial) : "" const products = [ { name: "Modern Desk Lamp", price: "$89.99", rating: 4.5, image: "/modern-desk-lamp.png", sale: false, }, { name: "Ergonomic Office Chair", price: "$299.99", originalPrice: "$399.99", rating: 5, image: "/ergonomic-office-chair.png", sale: true, }, { name: "Minimalist Bookshelf", price: "$149.99", rating: 4, image: "/placeholder.svg?key=4ove3", sale: false, }, { name: "Smart Home Speaker", price: "$129.99", originalPrice: "$179.99", rating: 4.5, image: "/smart-home-speaker.png", sale: true, }, ] return (
{/* Header */}

ShopEase

{/* Sidebar Filters */} {/* Product Grid */}

Featured Products

{products.map((product, i) => (
{product.name} {product.sale && Sale}

{product.name}

{Array.from({ length: Math.floor(product.rating) }).map((_, i) => ( ))} {product.rating % 1 !== 0 && } ({Math.floor(Math.random() * 100) + 10})
{product.price} {product.originalPrice && ( {product.originalPrice} )}
))}
) }