import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Label from './Label'; /** * @ngdoc react * @name Header * @description Header Component of a popup */ const Header: React.StatelessComponent = ( {text, onClose, children, className, noBorder, noPadding, centerText}, ): any => (
{text && ( )} {children}
); Header.propTypes = { text: PropTypes.string, onClose: PropTypes.func, children: PropTypes.node, className: PropTypes.string, noBorder: PropTypes.bool, noPadding: PropTypes.bool, centerText: PropTypes.bool, }; export default Header;