Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. import React from 'react';
  2. import { Snackbar, SnackbarContent } from '@material-ui/core';
  3.  
  4. interface NotificationProps {
  5. open: boolean,
  6. close: () => void
  7. }
  8.  
  9. export default class Notification extends React.Component<NotificationProps, {}> {
  10. public render() {
  11. return (
  12. <Snackbar anchorOrigin={{ vertical: 'bottom', horizontal: 'left' }} open={this.props.open} onClose={this.props.close}>
  13. <SnackbarContent message={this.props.children} />
  14. </Snackbar >
  15. )
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement