'use client' import { useEffect, useState } from 'react' import Link from 'next/link' import { usePathname, useRouter } from 'next/navigation' import { Swiper, SwiperSlide } from 'swiper/react' import type { HeaderProps } from '@/types/Header' import 'swiper/css' import { useSideNavState } from '@/store/sideNavState' // type HeaderProps = { // name: string //header 이름 // backBtn: boolean // 뒤로가기 버튼 유무 // } export default function Header({ name }: HeaderProps) { const router = useRouter() const pathname = usePathname() const { sideNavIsOpen, setSideNavIsOpen, reset } = useSideNavState() const [isShowBackBtn, setIsShowBackBtn] = useState(false) if (pathname === '/login') { return null } useEffect(() => { if (pathname !== '/') { setIsShowBackBtn(true) } //사이드바 초기화 reset() }, [pathname]) return ( <>
{isShowBackBtn && (
)}

{name}

profile
HONG GILDONG
Interplug corp.
私は作成した物件
私は作成したお問 い合わせ
私は作成したお問 い合わせ
) }