import type { ShopOffer } from '../data/mock'; interface Props { offers: ShopOffer[]; lowestPrice: number; sneakerData?: { item_id: string; item_name: string; item_brand: string; price: number; }; } export default function PriceComparisonTable({ offers, lowestPrice, sneakerData }: Props) { const sorted = [...offers].sort((a, b) => a.price - b.price); const handleOutboundClick = (offer: ShopOffer) => { if (!sneakerData) return; window.dataLayer = window.dataLayer || []; window.dataLayer.push({ ecommerce: null }); window.dataLayer.push({ event: 'select_promotion', ecommerce: { promotion_id: offer.shop, promotion_name: offer.shop, items: [sneakerData], }, }); window.dataLayer.push({ event: 'outbound_click', destination_url: offer.url, shop_name: offer.shop, }); }; return (