2024-06-24 22:42:37 +05:30
|
|
|
import * as React from 'react';
|
|
|
|
|
import Tabs from '@mui/material/Tabs';
|
|
|
|
|
import Tab from '@mui/material/Tab';
|
|
|
|
|
import Box from '@mui/material/Box';
|
|
|
|
|
import { Paper } from "@mui/material";
|
|
|
|
|
|
|
|
|
|
interface MainMenuProps {
|
|
|
|
|
value: string;
|
|
|
|
|
handleChangeContent: (newValue: string) => void;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const MainMenu = ({ value = 'recordings', handleChangeContent }: MainMenuProps) => {
|
|
|
|
|
|
|
|
|
|
const handleChange = (event: React.SyntheticEvent, newValue: string) => {
|
|
|
|
|
handleChangeContent(newValue);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<Paper
|
|
|
|
|
sx={{
|
|
|
|
|
height: 'auto',
|
|
|
|
|
maxWidth: 'fit-content',
|
2024-10-10 23:10:35 +05:30
|
|
|
backgroundColor: 'white',
|
2024-06-24 22:42:37 +05:30
|
|
|
paddingTop: '2rem',
|
|
|
|
|
}}
|
2024-10-10 23:10:35 +05:30
|
|
|
variant="outlined"
|
2024-06-24 22:42:37 +05:30
|
|
|
>
|
|
|
|
|
<Box sx={{
|
|
|
|
|
width: '100%',
|
|
|
|
|
paddingBottom: '22rem',
|
|
|
|
|
}}>
|
|
|
|
|
<Tabs
|
|
|
|
|
value={value}
|
|
|
|
|
onChange={handleChange}
|
|
|
|
|
textColor="primary"
|
|
|
|
|
indicatorColor="primary"
|
|
|
|
|
orientation="vertical"
|
|
|
|
|
>
|
|
|
|
|
<Tab sx={{
|
|
|
|
|
alignItems: 'baseline',
|
2024-09-30 18:06:46 +05:30
|
|
|
fontSize: 'medium',
|
2024-10-10 23:11:24 +05:30
|
|
|
}} value="recordings" label="Robots" />
|
2024-06-24 22:42:37 +05:30
|
|
|
<Tab sx={{
|
|
|
|
|
alignItems: 'baseline',
|
2024-09-30 18:06:46 +05:30
|
|
|
fontSize: 'medium',
|
2024-06-24 22:42:37 +05:30
|
|
|
}} value="runs" label="Runs" />
|
2024-09-30 18:06:46 +05:30
|
|
|
<Tab sx={{
|
2024-09-30 18:06:05 +05:30
|
|
|
alignItems: 'baseline',
|
2024-09-30 18:06:46 +05:30
|
|
|
fontSize: 'medium',
|
2024-09-30 18:06:05 +05:30
|
|
|
}} value="proxy" label="Proxy" />
|
2024-10-03 02:03:57 +05:30
|
|
|
<Tab sx={{
|
2024-10-03 02:03:45 +05:30
|
|
|
alignItems: 'baseline',
|
|
|
|
|
fontSize: 'medium',
|
2024-10-07 19:05:46 +05:30
|
|
|
}} value="apikey" label="API Key" />
|
2024-09-30 18:06:46 +05:30
|
|
|
</Tabs>
|
2024-06-24 22:42:37 +05:30
|
|
|
</Box>
|
|
|
|
|
</Paper>
|
|
|
|
|
);
|
|
|
|
|
}
|