RocketChat/Rocket.Chat

View on GitHub
apps/meteor/client/components/message/content/attachments/structure/AttachmentThumb.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import { Box, Avatar } from '@rocket.chat/fuselage';
import React, { memo } from 'react';

type AttachmentThumbProps = { url: string };

const AttachmentThumb = ({ url }: AttachmentThumbProps) => (
    <Box mis={8}>
        <Avatar {...({ url, size: 'x48' } as any)} />
    </Box>
);

export default memo(AttachmentThumb);