theme.tsx 2.33 KB
Newer Older
Kim, MinGyu's avatar
Kim, MinGyu committed
1
import React, { MouseEventHandler } from "react";
백승민's avatar
theme1    
백승민 committed
2
3
4

type ThemeProps = {
  handleClick: MouseEventHandler;
Kim, MinGyu's avatar
Kim, MinGyu committed
5
};
백승민's avatar
백승민 committed
6

Kim, MinGyu's avatar
Kim, MinGyu committed
7
export default function Theme({ handleClick }: ThemeProps) {
백승민's avatar
theme1    
백승민 committed
8
  return (
Kim, MinGyu's avatar
Kim, MinGyu committed
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
    <div className="flex overflow-x-auto bg-emerald-400 md:px-52 ">
      <button
        id={"surfing"}
        onClick={handleClick}
        className="hover:underline underline-offset-4 decoration-white px-5 shrink-0"
      >
        서핑
      </button>
      <button
        id={"activity"}
        onClick={handleClick}
        className="hover:underline underline-offset-4 decoration-white px-5 shrink-0"
      >
        액티비티
      </button>
      <button
        id={"camping"}
        onClick={handleClick}
        className="hover:underline underline-offset-4 decoration-white px-5 shrink-0"
      >
        캠핑
      </button>
      <button
        id={"sking"}
        onClick={handleClick}
        className="hover:underline underline-offset-4 decoration-white px-5 shrink-0"
      >
        스키
      </button>
      <button
        id={"boat"}
        onClick={handleClick}
        className="hover:underline underline-offset-4 decoration-white px-5 shrink-0"
      >
        보트
      </button>
      <button
        id={"desert"}
        onClick={handleClick}
        className="hover:underline underline-offset-4 decoration-white px-5 shrink-0"
      >
        사막
      </button>
      <button
        id={"golf"}
        onClick={handleClick}
        className="hover:underline underline-offset-4 decoration-white  px-5 shrink-0"
      >
        골프
      </button>
      <button
        id={"cave"}
        onClick={handleClick}
        className="hover:underline underline-offset-4 decoration-white px-5 shrink-0"
      >
        동굴
      </button>
      <button
        id={"history"}
        onClick={handleClick}
        className="hover:underline underline-offset-4 decoration-white px-5 shrink-0"
      >
        문화재
      </button>
      <button
        id={"zoo"}
        onClick={handleClick}
        className="hover:underline underline-offset-4 decoration-white px-5 shrink-0"
      >
        동물원
      </button>
      <button
        id={"cycling"}
        onClick={handleClick}
        className="hover:underline underline-offset-4 decoration-white px-5 shrink-0"
      >
        사이클링
      </button>
백승민's avatar
백승민 committed
87
88
    </div>
  );
Kim, MinGyu's avatar
Kim, MinGyu committed
89
}