import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { withStyles } from '@material-ui/core/styles'; import MenuIcon from '@material-ui/icons/Menu'; import AddIcon from '@material-ui/icons/Add'; import { AppBar, Toolbar, IconButton, Typography, Button, Fab, Snackbar } from '@material-ui/core'; const styles = theme => ({ root: { position: 'relative', overflow: 'hidden', }, appFrame: { width: '100%', height: 360, backgroundColor: theme.palette.background.paper, }, menuButton: { marginLeft: -12, marginRight: 20, }, button: { marginBottom: theme.spacing(1), }, fab: { position: 'absolute', bottom: theme.spacing(2), right: theme.spacing(2), }, fabMoveUp: { transform: 'translate3d(0, -46px, 0)', transition: theme.transitions.create('transform', { duration: theme.transitions.duration.enteringScreen, easing: theme.transitions.easing.easeOut, }), }, fabMoveDown: { transform: 'translate3d(0, 0, 0)', transition: theme.transitions.create('transform', { duration: theme.transitions.duration.leavingScreen, easing: theme.transitions.easing.sharp, }), }, snackbar: { position: 'absolute', }, snackbarContent: { width: '100%', }, }); class MobileNotif extends React.Component { state = { open: false, }; handleClick = () => { this.setState({ open: true }); }; handleClose = () => { this.setState({ open: false }); }; render() { const { classes } = this.props; const { open } = this.state; const fabClassName = classNames(classes.fab, open ? classes.fabMoveUp : classes.fabMoveDown); return (