Gazebo_simulation-Frontend/node_modules/.cache/babel-loader/8d31c56c472c04804b5c62d8d028a917.json

1 line
1.8 KiB
JSON
Raw Normal View History

2020-12-31 16:18:50 -04:00
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport classNames from 'classnames';\nimport React from 'react';\nimport SafeAnchor from './SafeAnchor';\nimport { useBootstrapPrefix } from './ThemeProvider';\nvar defaultProps = {\n active: false\n};\nvar BreadcrumbItem = React.forwardRef( // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\nfunction (_ref, ref) {\n var bsPrefix = _ref.bsPrefix,\n active = _ref.active,\n className = _ref.className,\n _ref$as = _ref.as,\n Component = _ref$as === void 0 ? 'li' : _ref$as,\n props = _objectWithoutPropertiesLoose(_ref, [\"bsPrefix\", \"active\", \"className\", \"as\"]);\n\n var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');\n\n var href = props.href,\n title = props.title,\n target = props.target,\n elementProps = _objectWithoutPropertiesLoose(props, [\"href\", \"title\", \"target\"]);\n\n var linkProps = {\n href: href,\n title: title,\n target: target\n };\n return React.createElement(Component, {\n ref: ref,\n className: classNames(prefix, className, {\n active: active\n }),\n \"aria-current\": active ? 'page' : undefined\n }, active ? React.createElement(\"span\", _extends({}, elementProps, {\n className: classNames({\n active: active\n })\n })) : React.createElement(SafeAnchor, _extends({}, elementProps, linkProps)));\n});\nBreadcrumbItem.displayName = 'BreadcrumbItem';\nBreadcrumbItem.defaultProps = defaultProps;\nexport default BreadcrumbItem;","map":null,"metadata":{},"sourceType":"module"}