1 | import _extends from "@babel/runtime/helpers/esm/extends";
|
2 | import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
3 | var _excluded = ["bsPrefix", "className", "as"];
|
4 | import classNames from 'classnames';
|
5 | import React from 'react';
|
6 | import { useBootstrapPrefix } from './ThemeProvider';
|
7 | var NavbarBrand = React.forwardRef(function (_ref, ref) {
|
8 | var bsPrefix = _ref.bsPrefix,
|
9 | className = _ref.className,
|
10 | as = _ref.as,
|
11 | props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
12 |
|
13 | bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
14 | var Component = as || (props.href ? 'a' : 'span');
|
15 | return React.createElement(Component, _extends({}, props, {
|
16 | ref: ref,
|
17 | className: classNames(className, bsPrefix)
|
18 | }));
|
19 | });
|
20 | NavbarBrand.displayName = 'NavbarBrand';
|
21 | export default NavbarBrand; |
\ | No newline at end of file |