🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
"use client";
import { useWindowSize } from "@uidotdev/usehooks";
import { AppSidebar } from "../../components/AppSidebar";
import { StandardPage } from "../../components/StandardPage";
import { NavigationSidebar } from "../../components/sidebar/NavigationSidebar";
import { MobileSidebar } from "./components/MobileSidebar";
export default function SettingsLayout({ children }: { children: React.ReactNode }) {
const { width } = useWindowSize();
if (width && width < 768) {
return (
<StandardPage showSidebar={false}>
<MobileSidebar />
<div className="mt-4">{children}</div>
</StandardPage>
);
}
return (
<div className="flex h-full">
<AppSidebar />
<NavigationSidebar />
<StandardPage showSidebar={false}>
<div className="flex-1 overflow-auto mt-4">{children}</div>
</StandardPage>
</div>
);
}