mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-22 13:04:19 +00:00
24 lines
947 B
JavaScript
24 lines
947 B
JavaScript
import React from "react"
|
|
import ButtonIconOnly from "../base/ButtonIconOnly"
|
|
import { faChartBar, faCloud, faMap, faStar } from "@fortawesome/free-solid-svg-icons"
|
|
|
|
|
|
export default function PickerVisualization({ currentTab, setTab, ...props }) {
|
|
return (
|
|
<div {...props}>
|
|
<ButtonIconOnly
|
|
onClick={() => setTab("stats")} disabled={currentTab ===
|
|
"stats"} color={"Grey"} icon={faStar}
|
|
/>
|
|
<ButtonIconOnly
|
|
onClick={() => setTab("wordcloud")} disabled={currentTab ===
|
|
"wordcloud"} color={"Grey"} icon={faCloud}
|
|
/>
|
|
<ButtonIconOnly
|
|
onClick={() => setTab("histogram")} disabled={currentTab ===
|
|
"histogram"} color={"Grey"} icon={faChartBar}
|
|
/>
|
|
<ButtonIconOnly onClick={() => setTab("map")} disabled={currentTab === "map"} color={"Grey"} icon={faMap}/>
|
|
</div>
|
|
)
|
|
}
|