'use client'; import { TabContext, TabList, TabPanel } from '@mui/lab'; import { Tab } from '@mui/material'; import { Suspense, useState } from 'react'; import { ProfileContextProvider } from '../contexts/ProfileContextProvider'; import Dashboard from './components/Dashboard/Dashboard'; import Settings from './components/Settings/Settings'; enum TabValue { DASHBOARD = 'DASHBOARD', SETTINGS = 'SETTINGS' } const tabPanelStyle = { margin: 0, padding: 0 }; export default function Home() { const [value, setValue] = useState(TabValue.DASHBOARD); const handleChange = (_: React.SyntheticEvent, newValue: TabValue) => { setValue(newValue); }; const tabStyle = { color: (tabValue: TabValue) => value === tabValue ? { color: "'primary.main'" } : { color: 'inherit' } }; return ( Loading...}> ); }