first project version mrDecor

This commit is contained in:
alirez.br
2026-05-11 15:30:57 +03:30
commit 8724072983
302 changed files with 25401 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
'use client'
import { usePathname } from 'next/navigation'
import FooterSection from '@/components/navigation/footer'
import { HeroHeader } from '@/components/navigation/header'
import { HeroHeaderTailark } from '@/components/navigation/header-main'
import Footer5 from '@/components/navigation/footer'
export function ConditionalLayout({ children }: { children: React.ReactNode }) {
const pathname = usePathname()
const isLoginPage = pathname === '/login'
const isHomePage = pathname === '/'
return (
<>
{!isLoginPage && <HeroHeaderTailark />}
{children}
{!isLoginPage && <Footer5 />}
</>
)
}