metadata-based-explorer1
Version:
Box UI Elements
33 lines (26 loc) • 844 B
JavaScript
/**
* @flow
* @file Info component used by Keywords component
*/
import * as React from 'react';
import { FormattedMessage } from 'react-intl';
import IconInfoInverted from '../../../../icons/general/IconInfoInverted';
import Tooltip from '../../../../components/tooltip';
import messages from '../../../common/messages';
type Props = {
words: string,
};
const Info = ({ words }: Props): React.Node => (
<span className="bcs-keywords-actions">
<Tooltip
className="bcs-keywords-actions-tooltip"
position="bottom-left"
text={<FormattedMessage {...messages.keywordsList} values={{ words }} />}
>
<div className="bcs-keywords-info">
<IconInfoInverted height={16} width={16} />
</div>
</Tooltip>
</span>
);
export default Info;