11import { Logo } from '@shared/assets/logo' ;
22import { Button } from '@shared/ui/Button/Button' ;
3- import { headerVariants } from '@shared/ui/Header/Header.variants' ;
43import { UserMenu } from '@shared/ui/Header/UserMenu' ;
4+ import { cn } from '@shared/utils/cn' ;
55import type { ComponentPropsWithoutRef } from 'react' ;
6- import type { VariantProps } from 'tailwind-variants' ;
7-
8- const { base, rightSection, innerSection, navItem } = headerVariants ( ) ;
96
107const NAV_ITEMS = [
118 { id : 'buy' , label : '구매하기' } ,
@@ -15,14 +12,13 @@ const NAV_ITEMS = [
1512 { id : 'mypage' , label : '마이페이지' } ,
1613] as const ;
1714
18- export type HeaderProps = Omit < ComponentPropsWithoutRef < 'header' > , 'children' > &
19- VariantProps < typeof headerVariants > & {
20- isLoggedIn ?: boolean ;
21- user ?: { profileImage ?: string ; nickname ?: string } ;
22- onLoginClick ?: ( ) => void ;
23- onMyPageClick ?: ( ) => void ;
24- onLogoutClick ?: ( ) => void ;
25- } ;
15+ export type HeaderProps = Omit < ComponentPropsWithoutRef < 'header' > , 'children' > & {
16+ isLoggedIn ?: boolean ;
17+ user ?: { profileImage ?: string ; nickname ?: string } ;
18+ onLoginClick ?: ( ) => void ;
19+ onMyPageClick ?: ( ) => void ;
20+ onLogoutClick ?: ( ) => void ;
21+ } ;
2622
2723export const Header = ( {
2824 className,
@@ -34,12 +30,18 @@ export const Header = ({
3430 ...props
3531} : HeaderProps ) => {
3632 return (
37- < header { ...props } className = { base ( { className } ) } >
33+ < header
34+ { ...props }
35+ className = { cn (
36+ 'mx-auto flex w-full max-w-[1440px] items-center justify-between bg-white px-[120px] py-(--margin-l)' ,
37+ className
38+ ) }
39+ >
3840 < Logo />
39- < div className = { rightSection ( ) } >
40- < nav className = { innerSection ( ) } >
41+ < div className = "flex items-center gap-[93px]" >
42+ < nav className = "flex items-center gap-[56px]" >
4143 { NAV_ITEMS . map ( ( item ) => (
42- < span key = { item . id } className = { navItem ( ) } >
44+ < span key = { item . id } className = "typo-body-1 cursor-pointer text-center text-gray-900" >
4345 { item . label }
4446 </ span >
4547 ) ) }
0 commit comments