import { Box } from '@rocket.chat/fuselage'; import React from 'react'; import NegativeGrowthSymbol from './NegativeGrowthSymbol'; import PositiveGrowthSymbol from './PositiveGrowthSymbol'; function Growth({ children, ...props }) { if (children === 0) { return null; } return ( {children < 0 ? : } {String(Math.abs(children))} ); } export default Growth;