UNPKG

react-dyn-tabs

Version:
17 lines (16 loc) 502 B
import React from 'react'; import PropTypes from 'prop-types'; const DefaulTabInner = function DefaulTabInner(props) { return ( <button {...props.tabProps}> {props.children} {Object.prototype.hasOwnProperty.call(props, 'iconProps') && <span {...props.iconProps}></span>} </button> ); }; DefaulTabInner.propTypes /* remove-proptypes */ = { tabProps: PropTypes.object, children: PropTypes.node, iconProps: PropTypes.object, }; export default DefaulTabInner;