// ----------------------------------------------------------------------------- // Rent-Ka — Rental listings aggregator (Canada, outside Québec) // Author: Simon-Pierre Boucher — contact@spboucher.ai // components/ListingCard.tsx: listing card (results grid) // ----------------------------------------------------------------------------- import { Link } from "react-router-dom"; import { Listing, fmtPrice, sourceName } from "../api"; import { useAccount } from "../account"; import { IcoCamera, IcoHeart } from "./Icons"; import SmartImg from "./SmartImg"; import FairValueBadge from "./FairValueBadge"; import KaScoreBadge from "./KaScoreBadge"; export default function ListingCard({ l }: { l: Listing }) { const img = l.images && l.images.length > 0 ? l.images[0] : null; const { me, favs, toggleFav } = useAccount(); const fav = favs.has(l.uid); return (