1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-25 06:24:19 +00:00
pds-2021-g2-nest/nest_frontend/components/interactive/ButtonPicker.js

15 lines
349 B
JavaScript
Raw Normal View History

2021-05-21 14:37:30 +00:00
import React from "react"
import ButtonIconOnly from "../base/ButtonIconOnly"
export default function ButtonPicker({ setTab, currentTab, name, ...props }) {
return (
<ButtonIconOnly
onClick={() => setTab(name)}
disabled={currentTab === name}
color={"Grey"}
{...props}
/>
)
}