mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-12 14:21:10 +01:00
* website maintenance round * improve docs, revert bug workaround as it was fixed * boost memory * remove unnecessary code
18 lines
373 B
JavaScript
18 lines
373 B
JavaScript
import ReactTabs from '@hashicorp/react-tabs'
|
|
|
|
export default function Tabs({ children }) {
|
|
return (
|
|
<ReactTabs
|
|
items={children.map((Block) => ({
|
|
heading: Block.props.heading,
|
|
// eslint-disable-next-line react/display-name
|
|
tabChildren: () => Block,
|
|
}))}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export function Tab({ children }) {
|
|
return <>{children}</>
|
|
}
|