import React from 'react'; import { Typography } from '@material-ui/core'; import { withStyles } from '@material-ui/core/styles'; import styles from './styles'; class TopBar extends React.Component { render() { const { classes, size, title, text, } = this.props; if (size === 'big') { return (
{title} {text}
); } if (size === 'medium') { return (
{title} {text}
); } return (
); } } export default withStyles(styles)(TopBar);