openreplay/frontend/app/components/shared/LiveSessionReloadButton/LiveSessionReloadButton.tsx
Andrey Babushkin 5c9a29570c
Add lokalisation (#3104)
* applied eslint

* add locales and lint the project

* removed error boundary

* updated locales

* fix min files

* fix locales

* fix erorrs

* fix errors
2025-03-07 10:43:08 +01:00

21 lines
659 B
TypeScript

import React from 'react';
import { useStore } from 'App/mstore';
import { observer } from 'mobx-react-lite';
import ReloadButton from '../ReloadButton';
import { useTranslation } from 'react-i18next';
interface Props {
onClick: () => void;
}
function LiveSessionReloadButton(props: Props) {
const { t } = useTranslation();
const { sessionStore } = useStore();
const { onClick } = props;
const loading = sessionStore.loadingLiveSessions;
return (
<ReloadButton label={t('Refresh')} buttonSize={'small'} iconSize={14} loading={loading} onClick={onClick} className="cursor-pointer" />
);
}
export default observer(LiveSessionReloadButton);