1 | import _extends from "@babel/runtime/helpers/esm/extends";
|
2 | import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
3 | import React from 'react';
|
4 | import PropTypes from 'prop-types';
|
5 | import classNames from 'classnames';
|
6 | import { mapToCssModules, tagPropType } from './utils';
|
7 | var propTypes = {
|
8 | tag: tagPropType,
|
9 | className: PropTypes.string,
|
10 | cssModule: PropTypes.object
|
11 | };
|
12 | var defaultProps = {
|
13 | tag: 'span'
|
14 | };
|
15 |
|
16 | var NavbarText = function NavbarText(props) {
|
17 | var className = props.className,
|
18 | cssModule = props.cssModule,
|
19 | active = props.active,
|
20 | Tag = props.tag,
|
21 | attributes = _objectWithoutPropertiesLoose(props, ["className", "cssModule", "active", "tag"]);
|
22 |
|
23 | var classes = mapToCssModules(classNames(className, 'navbar-text'), cssModule);
|
24 | return React.createElement(Tag, _extends({}, attributes, {
|
25 | className: classes
|
26 | }));
|
27 | };
|
28 |
|
29 | NavbarText.propTypes = propTypes;
|
30 | NavbarText.defaultProps = defaultProps;
|
31 | export default NavbarText; |
\ | No newline at end of file |