db connect
This commit is contained in:
@@ -6,8 +6,13 @@ import Footer from "@/components/Footer";
|
||||
|
||||
export default function LayoutContent({ children }: { children: React.ReactNode }) {
|
||||
const pathname = usePathname();
|
||||
const isAdmin = pathname?.startsWith('/admin');
|
||||
const isHome = pathname === "/";
|
||||
|
||||
if (isAdmin) {
|
||||
return <div className="flex-1">{children}</div>;
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<Navbar />
|
||||
|
||||
Reference in New Issue
Block a user