openreplay/frontend/app/components/shared/LiveSessionReloadButton/LiveSessionReloadButton.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

19 lines
574 B
TypeScript

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