Dashboard sipadu mbip
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

NavbarBrand.js 821B

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