2020-10-30 20:34:04 +00:00
|
|
|
// Copyright 2020 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2020-07-24 01:35:32 +00:00
|
|
|
import React from 'react';
|
|
|
|
|
2020-11-19 18:11:35 +00:00
|
|
|
import { Tooltip } from './Tooltip';
|
2020-07-24 01:35:32 +00:00
|
|
|
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 (
|
2020-11-19 18:11:35 +00:00
|
|
|
<span className="module-in-contacts-icon__tooltip">
|
|
|
|
<Tooltip content={i18n('contactInAddressBook')}>
|
|
|
|
<span
|
|
|
|
tabIndex={0}
|
|
|
|
role="img"
|
|
|
|
aria-label={i18n('contactInAddressBook')}
|
|
|
|
className="module-in-contacts-icon__icon"
|
|
|
|
/>
|
|
|
|
</Tooltip>
|
|
|
|
</span>
|
2020-07-24 01:35:32 +00:00
|
|
|
);
|
2020-09-12 00:46:52 +00:00
|
|
|
/* eslint-enable jsx-a11y/no-noninteractive-tabindex */
|
2020-07-24 01:35:32 +00:00
|
|
|
};
|