"use client"; import { cn } from "cn"; import type * as React from "react"; import { type Elevation, useElevation } from "@/registry/edmi/ui/elevation"; const isDown = (s: string) => /^[-−–]/.test(s.trim()); // Compact sidebar row: colored letter tile, symbol, mono price and change. function WatchlistItem({ className, symbol, price, change, color = "var(--chart-1)", letter, active, elevation, ...props }: Omit, "children"> & { symbol: string; price: string; /** Signed percentage, e.g. `+2.38%`. */ change: string; /** Tile background: any CSS color, default `var(--chart-1)`. */ color?: string; letter?: string; active?: boolean; /** ✦ depth of the active row (raised +1 / floating +2 bevel it). */ elevation?: Elevation; }) { const level = useElevation(elevation, "control"); return ( {letter ?? symbol.charAt(0)} {symbol} {price} {change} ); } export { WatchlistItem };