28 lines
681 B
TypeScript
28 lines
681 B
TypeScript
"use client";
|
|
|
|
import { VIBNSidebar } from "@/components/layout/vibn-sidebar";
|
|
import { ReactNode } from "react";
|
|
import { useParams } from "next/navigation";
|
|
import { Toaster } from "sonner";
|
|
|
|
export default function SettingsLayout({
|
|
children,
|
|
}: {
|
|
children: ReactNode;
|
|
}) {
|
|
const params = useParams();
|
|
const workspace = params.workspace as string;
|
|
|
|
return (
|
|
<>
|
|
<div style={{ display: "flex", height: "100vh", background: "#f6f4f0", overflow: "hidden" }}>
|
|
<VIBNSidebar workspace={workspace} />
|
|
<main style={{ flex: 1, overflow: "auto" }}>
|
|
{children}
|
|
</main>
|
|
</div>
|
|
<Toaster position="top-center" />
|
|
</>
|
|
);
|
|
}
|