db connect

This commit is contained in:
2026-04-17 11:16:00 +03:00
parent b675fff437
commit 5a48605c35
25 changed files with 2607 additions and 298 deletions

View File

@@ -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 />