openreplay/frontend/app/components/shared/ChromePluginMessage/ChromePluginMessage.js
Andrey Babushkin fd5c0c9747
Add lokalisation (#3092)
* applied eslint

* add locales and lint the project

* removed error boundary

* updated locales

* fix min files

* fix locales
2025-03-06 17:43:15 +01:00

30 lines
927 B
JavaScript

import React from 'react';
import { Icon } from 'UI';
import { links } from 'App/constants';
import { useTranslation } from 'react-i18next';
export default function ChromePluginMessage({ style }) {
const { t } = useTranslation();
return (
<div
className="border rounded text-base mb-2 flex items-center p-2 bg-active-blue"
style={style}
>
<div className="flex items-center">
<Icon name="info-circle" size="14" color="gray-darkest" />
<div className="ml-2 mr-2 color-gray-darkest">
{t('Finding it difficult to add steps? Try our Chrome')}{' '}
<a
className="color-teal"
rel="noopener noreferrer"
target="_blank"
href={links['chrome-plugin']}
>
{t('Test Recorder')}
</a>
</div>
<Icon name="external-link-alt" size="14" color="teal" />
</div>
</div>
);
}