mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
22 lines
901 B
JavaScript
22 lines
901 B
JavaScript
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
||
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||
|
var _excluded = ["as", "bsPrefix", "className", "children"];
|
||
|
import classNames from 'classnames';
|
||
|
import React from 'react';
|
||
|
import { useBootstrapPrefix } from './ThemeProvider';
|
||
|
var PopoverTitle = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
||
|
var _ref$as = _ref.as,
|
||
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
||
|
bsPrefix = _ref.bsPrefix,
|
||
|
className = _ref.className,
|
||
|
children = _ref.children,
|
||
|
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
||
|
|
||
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
||
|
return /*#__PURE__*/React.createElement(Component, _extends({
|
||
|
ref: ref
|
||
|
}, props, {
|
||
|
className: classNames(bsPrefix, className)
|
||
|
}), children);
|
||
|
});
|
||
|
export default PopoverTitle;
|