mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-10-19 01:51:30 +08:00
33 lines
736 B
TypeScript
33 lines
736 B
TypeScript
import RouteTab from 'components/RouteTab';
|
|
import ROUTES from 'constants/routes';
|
|
import AlertChannels from 'container/AllAlertChannels';
|
|
import GeneralSettings from 'container/GeneralSettings';
|
|
import history from 'lib/history';
|
|
import React from 'react';
|
|
|
|
function SettingsPage(): JSX.Element {
|
|
const pathName = history.location.pathname;
|
|
|
|
return (
|
|
<RouteTab
|
|
{...{
|
|
routes: [
|
|
{
|
|
Component: GeneralSettings,
|
|
name: 'General',
|
|
route: ROUTES.SETTINGS,
|
|
},
|
|
{
|
|
Component: AlertChannels,
|
|
name: 'Alert Channels',
|
|
route: ROUTES.ALL_CHANNELS,
|
|
},
|
|
],
|
|
activeKey: pathName === ROUTES.ALL_CHANNELS ? 'Alert Channels' : 'General',
|
|
}}
|
|
/>
|
|
);
|
|
}
|
|
|
|
export default SettingsPage;
|