openreplay/frontend/app/components/shared/DevTools/ProfilerModal/ProfilerModal.tsx
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

28 lines
712 B
TypeScript

import React from 'react';
import { useTranslation } from 'react-i18next';
interface Props {
profile: any;
}
function ProfilerModal(props: Props) {
const { t } = useTranslation();
const {
profile: { name, args, result },
} = props;
return (
<div className="bg-white overflow-y-auto h-screen p-5">
<h5 className="mb-2 text-2xl">{name}</h5>
<h5 className="py-3">{t('Arguments')}</h5>
<ul className="color-gray-medium">
{args.split(',').map((arg: any) => (
<li> {`${arg}`} </li>
))}
</ul>
<h5 className="py-3">{t('Result')}</h5>
<div className="color-gray-medium">{`${result}`}</div>
</div>
);
}
export default ProfilerModal;