File tree Expand file tree Collapse file tree 4 files changed +56
-0
lines changed
Expand file tree Collapse file tree 4 files changed +56
-0
lines changed Original file line number Diff line number Diff line change 1+ const TipsMenu = ( {
2+ mode
3+ } : {
4+ mode : "topic" | "conversation" | "temporature" ;
5+ } ) => {
6+ let text = "" ;
7+ let imageUrl = "" ;
8+ switch ( mode ) {
9+ case "topic" :
10+ text = "대화 주제 추천" ;
11+ imageUrl = "/icon/starbubble.svg" ;
12+ break ;
13+ case "conversation" :
14+ text = "대화 꿀팁" ;
15+ imageUrl = "/icon/lightbulb.svg" ;
16+ break ;
17+ case "temporature" :
18+ text = "현재 대화의 온도 측정하기" ;
19+ imageUrl = "/icon/thermometer.svg" ;
20+ break ;
21+ default :
22+ return ;
23+ }
24+
25+ return (
26+ < div className = "flex bg-white px-4 py-4 border-gray-100 border-b w-[375px] h-[56px]" >
27+ < img src = { imageUrl } alt = { text } width = { 20 } height = { 20 } />
28+ < h2 className = "ml-[22px] font-medium text-2lg text-gray-800" > { text } </ h2 >
29+ </ div >
30+ ) ;
31+ } ;
32+
33+ export default TipsMenu ;
You can’t perform that action at this time.
0 commit comments