import type { ShareResponse } from '@/shared/api' interface StockDetailsProps { stock: ShareResponse } const rowStyle: React.CSSProperties = { display: 'flex', justifyContent: 'space-between', padding: '8px 0', borderBottom: '1px solid #eee', } export function StockDetails({ stock }: StockDetailsProps) { const md = stock.marketData const change = md.change ?? 0 const changePercent = md.changePercent ?? 0 const isPositive = change >= 0 const changeLabel = `${isPositive ? '+' : ''}${change.toFixed(2)} (${changePercent.toFixed(2)}%)` return (