You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
fms/pages/index.tsx

36 lines
1.3 KiB

import Head from 'next/head'
import styles from '../styles/Home.module.css'
import Processes from "../components/elements/processes";
import {Tabs, Tab} from '@mui/material';
import {useState} from "react";
import Commands from "../components/elements/commands";
export default function Home() {
const [tab, setTab] = useState<number>(0);
const handleChange = (event: any, tab: number) => setTab(tab)
return (
<>
<Head>
<title>System monitoring</title>
<meta name="description" content="System monitoring service"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="icon" href="/favicon.ico"/>
</Head>
<main className={styles.main}>
<Tabs
value={tab}
onChange={handleChange}
variant="scrollable"
scrollButtons
allowScrollButtonsMobile
aria-label="scrollable force tabs example"
>
<Tab label="Commands" />
<Tab label="Processes" />
</Tabs>
{tab === 0 && <Commands />}
{tab === 1 && <Processes />}
</main>
</>
)
}