Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from 'React'
- import { useStore } from '../store'
- const style = {
- position: 'absolute',
- bottom: 0,
- width: '100%',
- height: '2em',
- padding: '.5em',
- background: '#333',
- color: '#fff',
- }
- function Notifications () {
- const { notifications } = useStore()
- return (
- <div style={style}>
- {notifications.message}
- </div>
- )
- }
- export default Notifications
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement