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/apps/meteor/client/components/message/IgnoredContent.tsx

30 lines
865 B

import { Box, Icon, MessageBody } from '@rocket.chat/fuselage';
import { useTranslation } from '@rocket.chat/ui-contexts';
import type { ReactElement } from 'react';
import React, { memo } from 'react';
type IgnoredContentProps = {
onShowMessageIgnored: () => void;
};
const IgnoredContent = ({ onShowMessageIgnored }: IgnoredContentProps): ReactElement => {
const t = useTranslation();
const showMessageIgnored = (event: React.SyntheticEvent): void => {
event.stopPropagation();
onShowMessageIgnored();
};
return (
<MessageBody data-qa-type='message-body'>
<Box display='flex' alignItems='center' fontSize='x12' color='hint'>
<p role='button' onClick={showMessageIgnored} style={{ cursor: 'pointer' }}>
<Icon name='chevron-left' /> {t('Message_Ignored')}
</p>
</Box>
</MessageBody>
);
};
export default memo(IgnoredContent);