2021-05-19 00:05:20 +00:00
|
|
|
import React from "react"
|
|
|
|
import ButtonIconOnly from "../base/ButtonIconOnly"
|
2021-05-20 10:16:01 +00:00
|
|
|
import { faChartBar, faCloud, faMap, faStar } from "@fortawesome/free-solid-svg-icons"
|
2021-05-19 00:05:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
export default function PickerVisualization({ currentTab, setTab, ...props }) {
|
|
|
|
return (
|
|
|
|
<div {...props}>
|
2021-05-20 10:16:01 +00:00
|
|
|
<ButtonIconOnly
|
|
|
|
onClick={() => setTab("wordcloud")} disabled={currentTab ===
|
|
|
|
"wordcloud"} color={"Grey"} icon={faCloud}
|
|
|
|
/>
|
|
|
|
<ButtonIconOnly
|
|
|
|
onClick={() => setTab("histogram")} disabled={currentTab ===
|
|
|
|
"histogram"} color={"Grey"} icon={faChartBar}
|
|
|
|
/>
|
2021-05-19 00:05:20 +00:00
|
|
|
<ButtonIconOnly onClick={() => setTab("map")} disabled={currentTab === "map"} color={"Grey"} icon={faMap}/>
|
2021-05-20 10:16:01 +00:00
|
|
|
<ButtonIconOnly
|
|
|
|
onClick={() => setTab("stats")} disabled={currentTab ===
|
|
|
|
"stats"} color={"Grey"} icon={faStar}
|
|
|
|
/>
|
2021-05-19 00:05:20 +00:00
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|