import * as React from 'react' import { Snackbar, SnackbarContent } from '@material-ui/core' import { Theme, withStyles } from '@material-ui/core/styles' import { green, red } from '@material-ui/core/colors' interface Props { message?: string onClose: () => void classes: any } class Notification extends React.Component { constructor(props: Props) { super(props) } public static styles = (theme: Theme) => ({ success: { backgroundColor: green[600], color: theme.typography.button.color, }, error: { backgroundColor: red[600], color: theme.typography.button.color, }, }) public render() { const snackbarAnchor = { vertical: 'bottom' as 'bottom', horizontal: 'left' as 'left', } return ( ) } } export default withStyles(Notification.styles)(Notification)