Initial commit: Next.js project with Persian content and custom styling
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
'use client'
|
||||
|
||||
import { usePathname } from 'next/navigation'
|
||||
import FooterSection from '@/components/footer'
|
||||
import { HeroHeader } from '@/components/header'
|
||||
|
||||
export function ConditionalLayout({ children }: { children: React.ReactNode }) {
|
||||
const pathname = usePathname()
|
||||
const isLoginPage = pathname === '/login'
|
||||
|
||||
return (
|
||||
<>
|
||||
{!isLoginPage && <HeroHeader />}
|
||||
{children}
|
||||
{!isLoginPage && <FooterSection />}
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user