Files
goTorrent/goTorrentWebUI/node_modules/material-ui/Card/CardContent.js.flow

42 lines
1007 B
Plaintext

import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
export const styles = theme => ({
root: {
padding: theme.spacing.unit * 2,
'&:last-child': {
paddingBottom: theme.spacing.unit * 3,
},
},
});
function CardContent(props) {
const { classes, className, component: Component, ...other } = props;
return <Component className={classNames(classes.root, className)} {...other} />;
}
CardContent.propTypes = {
/**
* Useful to extend the style applied to components.
*/
classes: PropTypes.object.isRequired,
/**
* @ignore
*/
className: PropTypes.string,
/**
* The component used for the root node.
* Either a string to use a DOM element or a component.
*/
component: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
};
CardContent.defaultProps = {
component: 'div',
};
export default withStyles(styles, { name: 'MuiCardContent' })(CardContent);