"use client"; import * as React from "react"; import { cn } from "./lib/utils"; export interface PriceOffer { id: string; seller: string; price: number; shipping?: string; best?: boolean; } export interface PriceCompareProps extends React.HTMLAttributes { title: string; offers: PriceOffer[]; currency?: string; } /** Price comparison table highlighting the best vendor offer. */ export function PriceCompare({ title, offers, currency = "$", className, ...props }: PriceCompareProps) { const sorted = [...offers].sort((a, b) => a.price - b.price); const best = sorted[0]; return (

{title}

); }