/** * 可平 */ import React, { FC } from "react"; import { formatFloor } from "@utils/FormatNumber"; interface Props { buyValue?: string | number; sellValue?: string | number; unit?: string; scale?: number; } export const CloseValue: FC = props => { const { scale, unit = "" } = props; return (
可平
{formatFloor(props.buyValue ?? 0, scale)} {unit}
可平
{formatFloor(props.sellValue ?? 0, scale)} {unit}
); }; CloseValue.defaultProps = {};