Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from 'react';
- import { Snackbar, SnackbarContent } from '@material-ui/core';
- interface NotificationProps {
- open: boolean,
- close: () => void
- }
- export default class Notification extends React.Component<NotificationProps, {}> {
- public render() {
- return (
- <Snackbar anchorOrigin={{ vertical: 'bottom', horizontal: 'left' }} open={this.props.open} onClose={this.props.close}>
- <SnackbarContent message={this.props.children} />
- </Snackbar >
- )
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement