// import { Badge } from "@/components/ui/badge"; import { Separator } from "@/components/ui/separator"; import { DashboardStockItem } from "@/features/trade/types/trade.types"; import { cn } from "@/lib/utils"; interface StockHeaderProps { stock: DashboardStockItem; price: string; change: string; changeRate: string; high?: string; low?: string; volume?: string; } export function StockHeader({ stock, price, change, changeRate, high, low, volume, }: StockHeaderProps) { const isRise = changeRate.startsWith("+") || parseFloat(changeRate) > 0; const isFall = changeRate.startsWith("-") || parseFloat(changeRate) < 0; const colorClass = isRise ? "text-red-500" : isFall ? "text-blue-600 dark:text-blue-400" : "text-foreground"; return (
고가
{high || "--"}
저가
{low || "--"}
거래량(24H)
{volume || "--"}