feat: add basic layout (#3)
Co-authored-by: typist <git@mail.typist.cc> Reviewed-on: #3
This commit is contained in:
14
src/layout.tsx
Normal file
14
src/layout.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { SidebarProvider, SidebarTrigger } from "@/components/ui/sidebar"
|
||||
import { Sidebar } from "@/components/ui/sidebar"
|
||||
import type { FC } from "react"
|
||||
import { Outlet } from "react-router-dom";
|
||||
|
||||
export const Layout: FC = () => (
|
||||
<SidebarProvider>
|
||||
<Sidebar />
|
||||
<main>
|
||||
<SidebarTrigger />
|
||||
<Outlet />
|
||||
</main>
|
||||
</SidebarProvider>
|
||||
);
|
||||
Reference in New Issue
Block a user