The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/client/components/data/Counter.js

36 lines
703 B

import { Box, Flex, Margins } from '@rocket.chat/fuselage';
import React from 'react';
import Growth from './Growth';
function Counter({ count, variation = 0, description }) {
return (
<>
<Flex.Container alignItems='end'>
<Box>
<Box
is='span'
color='default'
fontScale='h2'
style={{
fontSize: '3em',
lineHeight: 1,
}}
>
{count}
</Box>
<Growth fontScale='h4'>{variation}</Growth>
</Box>
</Flex.Container>
<Margins block='x12'>
<Flex.Container alignItems='center'>
<Box fontScale='p2' color='hint'>
{description}
</Box>
</Flex.Container>
</Margins>
</>
);
}
export default Counter;