/** * 填充的买/卖数量 */ import React, { FC, useMemo } from "react"; import clsx from "clsx"; interface Props { buyText: string; sellText: string; className?: string; } export const CenterQuantity: FC = props => { const { buyText, sellText, className } = props; return useMemo(() => { return (
{buyText} / {sellText}
); }, [buyText, sellText, className]); };