stream-chat-react
Version:
React components to create chat conversations or livestream style chat
9 lines (8 loc) • 590 B
JavaScript
import React from 'react';
import { useTranslationContext } from '../../context/TranslationContext';
export const CloseIcon = ({ title }) => {
const { t } = useTranslationContext('CloseIcon');
return (React.createElement("svg", { "data-testid": 'close-no-outline', fill: 'none', viewBox: '0 0 24 24', xmlns: 'http://www.w3.org/2000/svg' },
React.createElement("title", null, title ?? t('Close')),
React.createElement("path", { d: 'M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z', fill: 'black' })));
};