import { Link } from "wouter"; import { Store } from "@/types"; import { Card, CardContent } from "@/components/ui/card"; import { Badge } from "@/components/ui/badge"; import { Star, MapPin } from "lucide-react"; interface StoreCardProps { store: Store; } export default function StoreCard({ store }: StoreCardProps) { return ( {/* Store Banner */}
{store.bannerImage ? ( {`${store.name} ) : (
)}
{/* Store Face Image */}
{store.faceImage ? ( {`${store.name} ) : (
No Image
)}

{store.name}

{/* Seller name */}

By: {store.seller?.username || 'Store Owner'}

{/* Store Rating */}
{[...Array(5)].map((_, i) => ( ))}
(4.9/5)
{/* Store Description */} {store.description && (

{store.description}

)} {/* Store Info */}
Verified • Bharat
Active
); }