import { formatUsdValue } from '../utils' const PnlText = ({ className, pnl }: { className?: string; pnl?: number }) => ( <> {pnl ? ( 0 ? 'text-th-green' : 'text-th-red'}`} > {formatUsdValue(pnl)} ) : ( '--' )} ) export default PnlText