signal-desktop/ts/components/InContactsIcon.tsx

34 lines
792 B
TypeScript
Raw Normal View History

2020-07-24 01:35:32 +00:00
import React from 'react';
import Tooltip from 'react-tooltip-lite';
import { LocalizerType } from '../types/Util';
type PropsType = {
i18n: LocalizerType;
};
export const InContactsIcon = (props: PropsType): JSX.Element => {
const { i18n } = props;
2020-09-12 00:46:52 +00:00
/* eslint-disable jsx-a11y/no-noninteractive-tabindex */
2020-07-24 01:35:32 +00:00
return (
<Tooltip
tagName="span"
direction="bottom"
className="module-in-contacts-icon__tooltip"
arrowSize={8}
content={i18n('contactInAddressBook')}
distance={13}
hoverDelay={0}
>
<span
tabIndex={0}
role="img"
aria-label={i18n('contactInAddressBook')}
className="module-in-contacts-icon__icon"
/>
</Tooltip>
);
2020-09-12 00:46:52 +00:00
/* eslint-enable jsx-a11y/no-noninteractive-tabindex */
2020-07-24 01:35:32 +00:00
};