import { Link } from 'react-router-dom' import { formatInt, hostnameOf, Store } from '../api' import { IconMapPin } from './Icons' import OriginBadge from './OriginBadge' import StoreLogo from './StoreLogo' export default function StoreCard({ store }: { store: Store }) { return (

{store.name}

{hostnameOf(store.url)}

{[store.city, store.region].filter(Boolean).join(', ') || 'Québec'}

{store.platform && ( {store.platform} )} {formatInt(store.product_count)} produit {store.product_count === 1 ? '' : 's'}
) }