import { Theme, Typography, withStyles, WithStyles } from '@material-ui/core'; import * as React from 'react'; const styles = (theme: Theme) => ({ root: { marginRight: theme.spacing(0.5), fontSize: 20, color: 'inherit', display: 'flex', justifyContent: 'space-between', alignItems: 'start', }, actions: { '&>*': { marginLeft: 10, }, }, }); interface Props extends WithStyles { title: JSX.Element | string; actions: JSX.Element; } const HeaderWithActions: React.FC = ({ classes, title, actions }) => (
{title}
{actions}
); export default withStyles(styles)(HeaderWithActions);