@@ -25,7 +25,6 @@ const Header = ({
2525 onToggleLike,
2626 onOpenReportModal,
2727 onDeleteLetter,
28- isShareLetterPreview = false ,
2928} : HeaderProps ) => {
3029 const navigate = useNavigate ( ) ;
3130 return (
@@ -34,27 +33,25 @@ const Header = ({
3433 < button onClick = { ( ) => navigate ( - 1 ) } >
3534 < ArrowLeftIcon className = "text-primary-1 h-6 w-6" />
3635 </ button >
37- { ! isShareLetterPreview && (
38- < div className = "flex items-center gap-3" >
39- < div className = "flex items-center gap-1" >
40- < button type = "button" onClick = { onToggleLike } >
41- { isLike ? (
42- < LikeFilledIcon className = "text-primary-1 h-6 w-6" />
43- ) : (
44- < LikeOutlinedIcon className = "text-primary-1 h-6 w-6" />
45- ) }
46- </ button >
47- < p className = "body-l-m text-primary-1" > { likeCount } </ p >
48- </ div >
49- { isWriter ? (
50- < DeleteIcon className = "text-primary-1 h-6 w-6" onClick = { onDeleteLetter } />
51- ) : (
52- < button type = "button" onClick = { onOpenReportModal } >
53- < SirenOutlinedIcon className = "text-primary-1 h-6 w-6" />
54- </ button >
55- ) }
36+ < div className = "flex items-center gap-3" >
37+ < div className = "flex items-center gap-1" >
38+ < button type = "button" onClick = { onToggleLike } >
39+ { isLike ? (
40+ < LikeFilledIcon className = "text-primary-1 h-6 w-6" />
41+ ) : (
42+ < LikeOutlinedIcon className = "text-primary-1 h-6 w-6" />
43+ ) }
44+ </ button >
45+ < p className = "body-l-m text-primary-1" > { likeCount } </ p >
5646 </ div >
57- ) }
47+ { isWriter ? (
48+ < DeleteIcon className = "text-primary-1 h-6 w-6" onClick = { onDeleteLetter } />
49+ ) : (
50+ < button type = "button" onClick = { onOpenReportModal } >
51+ < SirenOutlinedIcon className = "text-primary-1 h-6 w-6" />
52+ </ button >
53+ ) }
54+ </ div >
5855 </ div >
5956 < div className = "h-4 w-full bg-gradient-to-b from-white to-white/0" />
6057 </ header >
0 commit comments