-
Notifications
You must be signed in to change notification settings - Fork 0
/
NavigatorB.jsx
43 lines (37 loc) · 2.46 KB
/
NavigatorB.jsx
1
2
3
4
5
6
7
8
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
import { useState } from "react";
import NavigatorBStyle from "./NavigatorB.module.css";
import { AiOutlineHome, AiOutlineCompass, AiOutlineMessage, AiOutlineCamera, AiOutlineUp } from 'react-icons/ai';
export default function NavigatorB({bg="black"}){
const [buttonState, setButtonstate] = useState("home")
return(
<div style={{backgroundColor:bg}} className={NavigatorBStyle.NavigationContainer}>
<center><div className={NavigatorBStyle.NavigationBar}></div></center>
<div className={NavigatorBStyle.navigateBox}>
<button onClick={() => setButtonstate("home")} className={NavigatorBStyle.NavigateButton}>
<center>
<AiOutlineHome className={buttonState == "home" ? NavigatorBStyle.iconActive : NavigatorBStyle.icon}/>
<AiOutlineUp className={buttonState == "home" ? NavigatorBStyle.UparrowVisible : NavigatorBStyle.UparrowHidden}/>
</center>
</button>
<button onClick={() => setButtonstate("compass")} className={NavigatorBStyle.NavigateButton}>
<center>
<AiOutlineCompass className={buttonState == "compass" ? NavigatorBStyle.iconActive : NavigatorBStyle.icon}/>
<AiOutlineUp className={buttonState == "compass" ? NavigatorBStyle.UparrowVisible : NavigatorBStyle.UparrowHidden}/>
</center>
</button>
<button onClick={() => setButtonstate("message")} className={NavigatorBStyle.NavigateButton}>
<center>
<AiOutlineMessage className={buttonState == "message" ? NavigatorBStyle.iconActive : NavigatorBStyle.icon}/>
<AiOutlineUp className={buttonState == "message" ? NavigatorBStyle.UparrowVisible : NavigatorBStyle.UparrowHidden}/>
</center>
</button>
<button onClick={() => setButtonstate("camera")} className={NavigatorBStyle.NavigateButton}>
<center>
<AiOutlineCamera className={buttonState == "camera" ? NavigatorBStyle.iconActive : NavigatorBStyle.icon}/>
<AiOutlineUp className={buttonState == "camera" ? NavigatorBStyle.UparrowVisible : NavigatorBStyle.UparrowHidden}/>
</center>
</button>
</div>
</div>
)
}