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 Face Image */} {store.faceImage ? ( ) : ( 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 ); }
By: {store.seller?.username || 'Store Owner'}
{store.description}