File tree Expand file tree Collapse file tree 3 files changed +34
-2
lines changed
Expand file tree Collapse file tree 3 files changed +34
-2
lines changed Original file line number Diff line number Diff line change 1+ const SubTitle = ( { mode } : { mode : "빠른대화" | "친구목록" } ) => {
2+ const titleList = {
3+ 빠른대화 : {
4+ title : "빠른 대화" ,
5+ description : "대화가 저장되지 않아요."
6+ } ,
7+ 친구목록 : {
8+ title : "친구 목록" ,
9+ description : "친구 정보와 대화 내용을 저장해요."
10+ }
11+ } ;
12+
13+ return (
14+ < div className = "flex items-center" >
15+ < h2 className = "font-bold text-gray-900 text-xl" >
16+ { titleList [ mode ] . title }
17+ </ h2 >
18+ < p className = "ml-1.5 font-light text-md" > { titleList [ mode ] . description } </ p >
19+ { mode === "친구목록" && (
20+ < img
21+ className = "ml-[78px]"
22+ src = "/icon/plus.svg"
23+ alt = "친구 추가 버튼"
24+ width = { 14 }
25+ height = { 14 }
26+ />
27+ ) }
28+ </ div >
29+ ) ;
30+ } ;
31+
32+ export default SubTitle ;
Original file line number Diff line number Diff line change 1- import { Mbti } from "@/ types/mbti" ;
1+ import { Mbti } from "types/mbti" ;
22import pickMbtiImage from "@/utils/pickMbtiImage" ;
33
44const TopicRecommend = ( { mbti = "ESTP" } : { mbti : Mbti } ) => {
Original file line number Diff line number Diff line change 1- import { Mbti } from "@/ types/mbti" ;
1+ import { Mbti } from "types/mbti" ;
22
33const pickMbtiImage = ( mbti : Mbti ) => {
44 let mbtiImage = "" ;
You can’t perform that action at this time.
0 commit comments