+ {isSuccess && {JSON.stringify(data, null, '\t')}
}
+ {isError && t('Something_went_wrong_try_again_later')}
+ {isLoading && (
+ <>
+
+
+
+ >
+ )}
+
+ >
+ );
+};
+
+export default AnalyticsReports;
diff --git a/apps/meteor/client/views/admin/viewLogs/ViewLogsPage.tsx b/apps/meteor/client/views/admin/viewLogs/ViewLogsPage.tsx
index a75c22da19b0..4463fec8f5bf 100644
--- a/apps/meteor/client/views/admin/viewLogs/ViewLogsPage.tsx
+++ b/apps/meteor/client/views/admin/viewLogs/ViewLogsPage.tsx
@@ -1,18 +1,30 @@
+import { Tabs } from '@rocket.chat/fuselage';
import { useTranslation } from '@rocket.chat/ui-contexts';
import type { ReactElement } from 'react';
-import React from 'react';
+import React, { useState } from 'react';
import Page from '../../../components/Page';
+import AnalyticsReports from './AnalyticsReports';
import ServerLogs from './ServerLogs';
const ViewLogsPage = (): ReactElement => {
const t = useTranslation();
+ const [tab, setTab] = useState('Logs');
+
return (