"use client"; import type { Asset, MarketListing, MarketNegotiation } from "@/payload-types"; import { StoreIcon } from "lucide-react"; import { buildChatBubbles } from "@/lib/market/chatBubbles"; import { ChatBubbleList } from "@/components/frontend/market/ChatBubbleList"; interface NpcChatProps { listing: MarketListing; negotiation: MarketNegotiation | null; currencyLabel: string | null; } export function NpcChat({ listing, negotiation, currencyLabel }: NpcChatProps) { const asset = listing.asset as Asset; const assetName = typeof asset === "object" && asset ? asset.name : `Asset #${listing.asset}`; const bubbles = buildChatBubbles(negotiation, listing, currencyLabel); return (
Vendor — {assetName}
); }