1 | import _extends from "@babel/runtime/helpers/esm/extends";
|
2 | import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
3 | import * as React from 'react';
|
4 | import PropTypes from 'prop-types';
|
5 | import clsx from 'clsx';
|
6 | import withStyles from '../styles/withStyles';
|
7 | export const styles = {
|
8 |
|
9 | root: {
|
10 | padding: 16,
|
11 | '&:last-child': {
|
12 | paddingBottom: 24
|
13 | }
|
14 | }
|
15 | };
|
16 | const CardContent = React.forwardRef(function CardContent(props, ref) {
|
17 | const {
|
18 | classes,
|
19 | className,
|
20 | component: Component = 'div'
|
21 | } = props,
|
22 | other = _objectWithoutPropertiesLoose(props, ["classes", "className", "component"]);
|
23 |
|
24 | return React.createElement(Component, _extends({
|
25 | className: clsx(classes.root, className),
|
26 | ref: ref
|
27 | }, other));
|
28 | });
|
29 | process.env.NODE_ENV !== "production" ? CardContent.propTypes = {
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 | |
36 |
|
37 |
|
38 | children: PropTypes.node,
|
39 |
|
40 | |
41 |
|
42 |
|
43 |
|
44 | classes: PropTypes.object,
|
45 |
|
46 | |
47 |
|
48 |
|
49 | className: PropTypes.string,
|
50 |
|
51 | |
52 |
|
53 |
|
54 |
|
55 | component: PropTypes
|
56 |
|
57 | .elementType
|
58 | } : void 0;
|
59 | export default withStyles(styles, {
|
60 | name: 'MuiCardContent'
|
61 | })(CardContent); |
\ | No newline at end of file |