import { Box } from '@rocket.chat/fuselage'; import type { ComponentProps } from 'react'; import NegativeGrowthSymbol from './NegativeGrowthSymbol'; import PositiveGrowthSymbol from './PositiveGrowthSymbol'; export type GrowthProps = ComponentProps & { children: number; }; const Growth = ({ children, ...props }: GrowthProps) => { if (children === 0) { return null; } return ( {children < 0 ? : } {String(Math.abs(children))} ); }; export default Growth;