import React, { useState, useContext } from 'react' import { Box, Paper, Tab, styled } from '@mui/material' import TabContext from '@mui/lab/TabContext' import TabList from '@mui/lab/TabList' import TabPanel from '@mui/lab/TabPanel' import Permission from './permission' import Profile from './profile' import { AppContext, ModeType } from '../../context/appContext' import PermissionsContextProvider from '../../context/permissionsContext' const StyledTab = styled(Tab)({ background: 'black', margin: '0 5px 5px 0' }) const StyledTabpanel = styled(TabPanel)({ flexGrow: 1 }) const Settings = () => { const appContext = useContext(AppContext) const [value, setValue] = useState('profile') const handleChange = (event: React.SyntheticEvent, newValue: string) => { setValue(newValue) } return ( {appContext.mode === ModeType.Server && ( )} ) } export default Settings