diff --git a/src/components/Root.js b/src/components/Root.js new file mode 100644 index 0000000..d877444 --- /dev/null +++ b/src/components/Root.js @@ -0,0 +1,36 @@ +import { useDisclosure } from "@mantine/hooks"; +import { useLocation } from "react-router-dom"; +import NavBar from './components/NavBar'; +import Header from './components/Header'; +import RouterSwitcher from './components/RouterSwitcher'; +import {AppShell} from '@mantine/core'; + + +export default function Root({ logout }) { + const location = useLocation(); + + const [active, setActive] = useState( + data.findIndex((item) => item.link === location.pathname) + ); + + const [opened, {toggle}] = useDisclosure(); + + return( +
+ +
+ + + + + + + Built by Maritoni V. Benjamin + + +
+ ); +} \ No newline at end of file