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/Message/Attachments/Attachment/Size.tsx

16 lines
439 B

import { Box } from '@rocket.chat/fuselage';
import React, { ComponentProps, FC } from 'react';
import { useFormatMemorySize } from '../../../../hooks/useFormatMemorySize';
import Title from './Title';
const Size: FC<ComponentProps<typeof Box> & { size: number }> = ({ size, ...props }) => {
const format = useFormatMemorySize();
return (
<Title flexShrink={0} {...props}>
({format(size)})
</Title>
);
};
export default Size;