Files
frontend/apps/cs/app/(with-base-layout)/layout.tsx
T

19 lines
408 B
TypeScript

"use client";
import { usePathname, useRouter } from "next/navigation";
import { BaseLayout } from "@common/components/ui";
export default function WithBaseLayout({
children,
}: {
children: React.ReactNode;
}) {
const router = useRouter();
const pathname = usePathname();
return (
<BaseLayout currentPath={pathname ?? ""} routeHandler={router.push}>
{children}
</BaseLayout>
);
}