Initial commit
This commit is contained in:
commit
2f5e10140c
133 changed files with 10429 additions and 0 deletions
27
packages/web/src/routes/app/layout.tsx
Normal file
27
packages/web/src/routes/app/layout.tsx
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
import Socket from "@tensamin/ttp/context";
|
||||
import User from "@tensamin/core-user/context";
|
||||
import type { RouteSectionProps } from "@solidjs/router";
|
||||
|
||||
import Sidebar from "@/components/sidebar";
|
||||
import Conversation from "@/features/conversation/context";
|
||||
import Navbar from "@/components/navbar";
|
||||
|
||||
export default function Layout(props: RouteSectionProps) {
|
||||
return (
|
||||
<Socket>
|
||||
<User>
|
||||
<Conversation>
|
||||
<div class="w-full h-full flex bg-sidebar">
|
||||
<Sidebar />
|
||||
<div class="w-full h-full flex flex-col">
|
||||
<Navbar />
|
||||
<div class="bg-background h-full w-full rounded-tl-3xl border-t border-l">
|
||||
{props.children}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</Conversation>
|
||||
</User>
|
||||
</Socket>
|
||||
);
|
||||
}
|
||||
Loading…
Reference in a new issue