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/modals/FileUploadModal/GenericPreview.tsx

13 lines
439 B

import { Box, Icon } from '@rocket.chat/fuselage';
import React, { ReactElement } from 'react';
import { formatBytes } from '../../../lib/utils/formatBytes';
const GenericPreview = ({ file }: { file: File }): ReactElement => (
<Box display='flex' alignItems='center' w='full' fontScale='s2'>
<Icon name='file' size='x24' mis={-2} mie={4} />
{`${file.name} - ${formatBytes(file.size, 2)}`}
</Box>
);
export default GenericPreview;