import { Coins, ExternalLink } from "lucide-react"; import { Button } from "@/routes/ui/button"; import { cn } from "~/lib/utils"; import type { TokenData } from "../context/PageContextProvider"; import { ChainIcon } from "./shared/ChainIcon"; export interface DetectedTokensListProps { /** List of detected tokens */ tokens: TokenData[]; /** Callback when a token is clicked */ onTokenClick?: (token: TokenData) => void; /** Additional class names */ className?: string; } /** * DetectedTokensList - Display list of tokens detected from page content * * Features: * - Shows tokens detected from Twitter mentions, contract addresses, trading pairs * - Click to analyze token * - Shows chain icon for each token */ export function DetectedTokensList({ tokens, onTokenClick, className, }: DetectedTokensListProps) { if (tokens.length === 0) { return null; } return (