import React from 'react'; import PropTypes from 'prop-types'; import compose from 'recompose/compose'; import { withStyles } from '@material-ui/core/styles'; import { Paper, Grid, withWidth, Typography } from '@material-ui/core'; const styles = theme => ({ root: { flexGrow: 1, }, container: { display: 'flex', }, paper: { padding: theme.spacing(2), textAlign: 'center', color: theme.palette.text.secondary, flex: '1 0 auto', margin: theme.spacing(1), }, }); function GridIntegration(props) { const { classes } = props; return (
Current width: {props.width}
); } GridIntegration.propTypes = { classes: PropTypes.object.isRequired, width: PropTypes.string.isRequired, }; export default compose(withStyles(styles), withWidth())(GridIntegration);