percentChangeCell.tsx 552 B

123456789101112131415161718192021222324
  1. import {PercentChange} from 'sentry/components/percentChange';
  2. import {NumberContainer} from 'sentry/utils/discover/styles';
  3. type PercentChangeCellProps = {
  4. deltaValue: number;
  5. colorize?: boolean;
  6. preferredPolarity?: '+' | '-';
  7. };
  8. export function PercentChangeCell({
  9. deltaValue,
  10. preferredPolarity,
  11. colorize = true,
  12. }: PercentChangeCellProps) {
  13. return (
  14. <NumberContainer>
  15. <PercentChange
  16. value={deltaValue}
  17. colorize={colorize}
  18. preferredPolarity={preferredPolarity}
  19. />
  20. </NumberContainer>
  21. );
  22. }