UNPKG

1.22 kBJavaScriptView Raw
1import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
2import _objectWithoutPropertiesLoose from "@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose";
3import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
4import classNames from 'classnames';
5import React from 'react';
6import { bsClass, getClassSet, splitBsProps } from './utils/bootstrapUtils';
7
8var MediaListItem =
9/*#__PURE__*/
10function (_React$Component) {
11 _inheritsLoose(MediaListItem, _React$Component);
12
13 function MediaListItem() {
14 return _React$Component.apply(this, arguments) || this;
15 }
16
17 var _proto = MediaListItem.prototype;
18
19 _proto.render = function render() {
20 var _this$props = this.props,
21 className = _this$props.className,
22 props = _objectWithoutPropertiesLoose(_this$props, ["className"]);
23
24 var _splitBsProps = splitBsProps(props),
25 bsProps = _splitBsProps[0],
26 elementProps = _splitBsProps[1];
27
28 var classes = getClassSet(bsProps);
29 return React.createElement("li", _extends({}, elementProps, {
30 className: classNames(className, classes)
31 }));
32 };
33
34 return MediaListItem;
35}(React.Component);
36
37export default bsClass('media', MediaListItem);
\No newline at end of file