import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import {gettext} from 'core/utils'; /** * @ngdoc react * @name Label * @description Label used in a popup, typically in header */ const Label: React.StatelessComponent = ({text, children, centerText}) => ( {gettext(text)} {children} ); Label.propTypes = { text: PropTypes.string, children: PropTypes.node, centerText: PropTypes.bool, }; Label.defaultProps = {centerText: false}; export default Label;