mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-25 06:49:15 +01:00
24 lines
1.1 KiB
JavaScript
Vendored
24 lines
1.1 KiB
JavaScript
Vendored
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
import classNames from 'classnames';
|
|
import React from 'react';
|
|
import createWithBsPrefix from './createWithBsPrefix';
|
|
import { useBootstrapPrefix } from './ThemeProvider';
|
|
var MediaBody = createWithBsPrefix('media-body');
|
|
var Media = 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
|
|
function (_ref, ref) {
|
|
var bsPrefix = _ref.bsPrefix,
|
|
className = _ref.className,
|
|
_ref$as = _ref.as,
|
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
|
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
ref: ref,
|
|
className: classNames(className, prefix)
|
|
}));
|
|
});
|
|
Media.displayName = 'Media';
|
|
Media.Body = MediaBody;
|
|
export default Media; |