import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { Button } from '@patternfly/react-core'; import { TimesIcon } from '@patternfly/react-icons'; import Tooltip from '../Tooltip'; import './tabs.scss'; const Tabs = ({ children, labelText, closeButton }) => (
{closeButton && ( ) }
); Tabs.propTypes = { children: PropTypes.oneOfType([ PropTypes.arrayOf(PropTypes.node), PropTypes.node ]).isRequired, labelText: PropTypes.string, closeButton: PropTypes.shape({ text: PropTypes.string, link: PropTypes.string, }), }; Tabs.defaultProps = { labelText: null, closeButton: null, }; export default Tabs;