mirror of
https://github.com/DeveloLongScript/MHSF.git
synced 2026-05-16 17:18:03 -05:00
18 lines
382 B
TypeScript
18 lines
382 B
TypeScript
|
|
"use client";
|
||
|
|
import { Sidebar } from "@/components/PreferencesSidebar";
|
||
|
|
import { usePathname } from "next/navigation";
|
||
|
|
|
||
|
|
export default function RootLayout({
|
||
|
|
children,
|
||
|
|
}: Readonly<{
|
||
|
|
children: React.ReactNode;
|
||
|
|
}>) {
|
||
|
|
const pathname = usePathname();
|
||
|
|
|
||
|
|
return (
|
||
|
|
<span className="pt-[48px]">
|
||
|
|
<Sidebar curPage={pathname as string}>{children}</Sidebar>
|
||
|
|
</span>
|
||
|
|
);
|
||
|
|
}
|