import { cn } from "cn"; import type * as React from "react"; import { Avatar, AvatarFallback, AvatarImage } from "@/registry/edmi/ui/avatar"; import { Card } from "@/registry/edmi/ui/card"; import type { Elevation } from "@/registry/edmi/ui/elevation"; type TickerItem = { symbol: string; price: string; /** Signed percentage string, e.g. `+0.42%` or `−0.31%`. Sign sets the color. */ change: string; /** Avatar image; falls back to the symbol's first letter. */ image?: string; href?: string; }; const isDown = (s: string) => /^[-−–]/.test(s.trim()); function TickerCell({ item }: { item: TickerItem }) { const content = ( <>