mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-29 07:54:19 +00:00
15 lines
349 B
JavaScript
15 lines
349 B
JavaScript
|
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}
|
||
|
/>
|
||
|
)
|
||
|
}
|