23 lines
636 B
TypeScript
23 lines
636 B
TypeScript
'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 />}
|
|
</>
|
|
)
|
|
}
|
|
|