- Updated the icons;
- Extracted the Layout into its own component;
This commit is contained in:
20
src/components/High/Layout.tsx
Normal file
20
src/components/High/Layout.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import {User} from "@/interfaces/user";
|
||||
import Navbar from "../Navbar";
|
||||
import Sidebar from "../Sidebar";
|
||||
|
||||
interface Props {
|
||||
user: User;
|
||||
children: React.ReactNode;
|
||||
}
|
||||
|
||||
export default function Layout({user, children}: Props) {
|
||||
return (
|
||||
<main className="w-full h-[100vh] flex flex-col bg-mti-gray-smoke">
|
||||
<Navbar user={user} />
|
||||
<div className="h-full w-full flex py-4 pb-8 gap-2">
|
||||
<Sidebar path={window.location.pathname} />
|
||||
<div className="w-5/6 h-full mr-8 bg-white shadow-md rounded-2xl p-12 flex flex-col gap-12">{children}</div>
|
||||
</div>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user